From eee5b39eb16c255784032ab681efa8b310d14d1f Mon Sep 17 00:00:00 2001 From: voidarc Date: Mon, 16 Feb 2026 09:35:17 +0000 Subject: [PATCH] i need to get a job wtf even are these changes --- init.lua | 11 ++++++++ lua/plugins/completion/lspconfig.lua | 1 + lua/plugins/completion/treesitter.lua | 3 ++- lua/plugins/functional/mini.lua | 16 ++++++------ lua/plugins/functional/remember.lua | 6 +++++ lua/plugins/functional/telescope.lua | 2 +- lua/plugins/ui/noice.lua | 37 +++++++++++++++++++++------ 7 files changed, 58 insertions(+), 18 deletions(-) create mode 100644 lua/plugins/functional/remember.lua diff --git a/init.lua b/init.lua index 682a253..6d209f4 100644 --- a/init.lua +++ b/init.lua @@ -50,6 +50,17 @@ vim.cmd.colorscheme("catppuccin-mocha") -- Scrolloff vim.opt.scrolloff = math.floor(vim.o.lines / 2) - 3 +-- Indent +vim.o.autoindent = true +-- Rebind 'i' to indent properly on empty lines +vim.keymap.set("n", "i", function() + if vim.fn.getline("."):match("^%s*$") then + return [["_cc]] + else + return "i" + end +end, { expr = true, desc = "Indent properly on empty lines" }) + -- Force proper keybindings vim.keymap.set("n", "", 'echo "Use h to move!!"') vim.keymap.set("n", "", 'echo "Use l to move!!"') diff --git a/lua/plugins/completion/lspconfig.lua b/lua/plugins/completion/lspconfig.lua index b51f366..b98e818 100644 --- a/lua/plugins/completion/lspconfig.lua +++ b/lua/plugins/completion/lspconfig.lua @@ -29,6 +29,7 @@ return { vim.lsp.enable({ "lua_ls", "ts_ls", + "pylsp", "cssls", "nixd", "rust_analyzer", diff --git a/lua/plugins/completion/treesitter.lua b/lua/plugins/completion/treesitter.lua index 1aac021..1b1b07a 100644 --- a/lua/plugins/completion/treesitter.lua +++ b/lua/plugins/completion/treesitter.lua @@ -6,6 +6,7 @@ return { config = function() require("nvim-treesitter.configs").setup({ highlight = { enable = true }, + indent = { enable = true }, ensure_installed = { "bash", "html", @@ -16,11 +17,11 @@ return { "norg_meta", "markdown", "markdown_inline", - "python", "query", "regex", "tsx", "typescript", + "python", "vim", "yaml", }, diff --git a/lua/plugins/functional/mini.lua b/lua/plugins/functional/mini.lua index 21d9d25..6960dd9 100644 --- a/lua/plugins/functional/mini.lua +++ b/lua/plugins/functional/mini.lua @@ -25,14 +25,14 @@ return { file = ".session", force = { read = false, write = true, delete = true }, }) - require("mini.notify").setup({ - window = { winblend = 0 }, - }) -- Better Notifications - vim.notify = MiniNotify.make_notify({ - ERROR = { duration = 5000 }, - WARN = { duration = 4000 }, - INFO = { duration = 3000 }, - }) + -- require("mini.notify").setup({ + -- window = { winblend = 0 }, + -- }) -- Better Notifications + -- vim.notify = MiniNotify.make_notify({ + -- ERROR = { duration = 5000 }, + -- WARN = { duration = 4000 }, + -- INFO = { duration = 3000 }, + -- }) require("mini.surround").setup() -- Suround selections with characters require("mini.move").setup({ mappings = { diff --git a/lua/plugins/functional/remember.lua b/lua/plugins/functional/remember.lua new file mode 100644 index 0000000..557f82c --- /dev/null +++ b/lua/plugins/functional/remember.lua @@ -0,0 +1,6 @@ +return { + "vladdoster/remember.nvim", + config = function() + require("remember").setup({}) + end, +} diff --git a/lua/plugins/functional/telescope.lua b/lua/plugins/functional/telescope.lua index d0ee6da..48e95a1 100644 --- a/lua/plugins/functional/telescope.lua +++ b/lua/plugins/functional/telescope.lua @@ -5,7 +5,7 @@ return { config = function() require("telescope").setup({ defaults = { - file_ignore_patterns = { ".git", ".node_modules" }, + file_ignore_patterns = { ".git", ".venv", ".node_modules" }, }, extensions = { file_browser = { diff --git a/lua/plugins/ui/noice.lua b/lua/plugins/ui/noice.lua index 9130fcb..ef81f2e 100644 --- a/lua/plugins/ui/noice.lua +++ b/lua/plugins/ui/noice.lua @@ -1,16 +1,37 @@ return { "folke/noice.nvim", event = "VeryLazy", - opts = { - messages = { - enabled = false, - }, - notify = { - enabled = false, - }, - }, + config = function() + require("noice").setup({ + messages = { + enabled = true, + view = "notify", + view_error = "notify", -- view for errors + view_warn = "notify", -- view for warnings + view_history = "messages", -- view for :messages + view_search = "virtualtext", -- view for search count messages. Set to `false` to disable + }, + notify = { + enabled = true, + view = "notify", + }, + hover = { + enabled = false, + }, + -- you can enable a preset for easier configuration + presets = { + long_message_to_split = true, -- long messages will be sent to a split + inc_rename = false, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = false, -- add a border to hover docs and signature help + }, + }) + require("notify").setup({ + background_colour = "#000000", + }) + end, dependencies = { -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries "MunifTanjim/nui.nvim", + "rcarriga/nvim-notify", }, }