diff options
| author | 2026-02-25 15:23:18 +0000 | |
|---|---|---|
| committer | 2026-02-25 16:35:14 +0000 | |
| commit | 518fd1b15173d224f20ac74ea2d0f139723ca1b2 (patch) | |
| tree | 4b188ed1a507c451417e17f1e650e72f8e35929e /nvim/lua | |
| parent | 61651e4db4c3d4b1da14f0734d917022ff77e991 (diff) | |
nvim completo!
Diffstat (limited to 'nvim/lua')
| -rw-r--r-- | nvim/lua/config/keymap.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/blink-cmp.lua | 2 | ||||
| -rw-r--r-- | nvim/lua/plugins/comment.lua | 6 | ||||
| -rw-r--r-- | nvim/lua/plugins/flash.lua | 16 | ||||
| -rw-r--r-- | nvim/lua/plugins/gitsigns.lua | 3 | ||||
| -rw-r--r-- | nvim/lua/plugins/lsp-format.lua | 16 | ||||
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 35 | ||||
| -rw-r--r-- | nvim/lua/plugins/mini-nvim.lua | 31 | ||||
| -rw-r--r-- | nvim/lua/plugins/mini-pairs.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/mini-statusline.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/none-ls.lua | 14 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-lspconfig.lua | 3 | ||||
| -rw-r--r-- | nvim/lua/plugins/nvim-treesitter.lua | 20 | ||||
| -rw-r--r-- | nvim/lua/plugins/oil-nvim.lua | 31 | ||||
| -rw-r--r-- | nvim/lua/plugins/quicker.lua | 13 | ||||
| -rw-r--r-- | nvim/lua/plugins/render-markdown.lua | 13 | ||||
| -rw-r--r-- | nvim/lua/plugins/todo-comments.lua | 9 |
17 files changed, 162 insertions, 53 deletions
diff --git a/nvim/lua/config/keymap.lua b/nvim/lua/config/keymap.lua index c6f4762..7d2fad0 100644 --- a/nvim/lua/config/keymap.lua +++ b/nvim/lua/config/keymap.lua @@ -2,6 +2,5 @@ vim.keymap.set("n", " ", "<Nop>", { silent = true, remap = false }) vim.keymap.set("n", "<Esc>", "<Cmd>noh<CR>", { silent = true, remap = true }) vim.keymap.set("n", "<Leader>x", "<Cmd>x<CR>", { silent = true, remap = true }) -vim.keymap.set("n", "<Leader>q", "<Cmd>q<CR>", { silent = true, remap = true }) vim.keymap.set("n", "<Leader>w", "<Cmd>update<CR>", { silent = true, remap = true }) vim.keymap.set("n", "<Leader>L", "<Cmd>Lazy<CR>", { silent = true, remap = true }) diff --git a/nvim/lua/plugins/blink-cmp.lua b/nvim/lua/plugins/blink-cmp.lua index c4caf79..43d11fe 100644 --- a/nvim/lua/plugins/blink-cmp.lua +++ b/nvim/lua/plugins/blink-cmp.lua @@ -40,7 +40,7 @@ return { -- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"` -- -- See the fuzzy documentation for more information - fuzzy = { implementation = "prefer_rust_with_warning" } + fuzzy = { implementation = "lua" } }, opts_extend = { "sources.default" } } diff --git a/nvim/lua/plugins/comment.lua b/nvim/lua/plugins/comment.lua new file mode 100644 index 0000000..1871cef --- /dev/null +++ b/nvim/lua/plugins/comment.lua @@ -0,0 +1,6 @@ +return { + 'numToStr/Comment.nvim', + opts = { + -- add any options here + } +} diff --git a/nvim/lua/plugins/flash.lua b/nvim/lua/plugins/flash.lua new file mode 100644 index 0000000..ff8f515 --- /dev/null +++ b/nvim/lua/plugins/flash.lua @@ -0,0 +1,16 @@ +return { + "folke/flash.nvim", + event = "VeryLazy", + ---@type Flash.Config + opts = { + modes = { + search = { + enabled = true, + }, + }, + }, + keys = { + { ";", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" }, + { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, + }, +} diff --git a/nvim/lua/plugins/gitsigns.lua b/nvim/lua/plugins/gitsigns.lua new file mode 100644 index 0000000..92361c2 --- /dev/null +++ b/nvim/lua/plugins/gitsigns.lua @@ -0,0 +1,3 @@ +return { + "lewis6991/gitsigns.nvim", +} diff --git a/nvim/lua/plugins/lsp-format.lua b/nvim/lua/plugins/lsp-format.lua deleted file mode 100644 index 22565dc..0000000 --- a/nvim/lua/plugins/lsp-format.lua +++ /dev/null @@ -1,16 +0,0 @@ -return { - "lukas-reineke/lsp-format.nvim", - opts = { - yaml = { - exclude = { "none-ls" }, - }, - }, -} --- lsp-format = { --- enable = true; --- settings = { --- yaml = { --- exclude = [ "none-ls" ]; --- }; --- }; --- }; diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua new file mode 100644 index 0000000..a903819 --- /dev/null +++ b/nvim/lua/plugins/lsp.lua @@ -0,0 +1,35 @@ +return { + { + "neovim/nvim-lspconfig", + }, + { + "lukas-reineke/lsp-format.nvim", + opts = { + yaml = { + exclude = { + "none-ls", + }, + }, + }, + }, + { + 'nvim-treesitter/nvim-treesitter', + lazy = false, + build = ':TSUpdate', + opts = { + ensure_installed = { + "zig", + "rust", + "java", + "nix", + "yaml", + "typescript", + "javascript", + "lua", + }, + incremental_selection = { + enable = true, + }, + }, + }, +} diff --git a/nvim/lua/plugins/mini-nvim.lua b/nvim/lua/plugins/mini-nvim.lua new file mode 100644 index 0000000..56c961a --- /dev/null +++ b/nvim/lua/plugins/mini-nvim.lua @@ -0,0 +1,31 @@ +return { + { + 'nvim-mini/mini.pairs', + version = '*', + lazy = false + }, + { + 'nvim-mini/mini.statusline', + version = '*' + }, + { + 'nvim-mini/mini.surround', + version = '*' + }, + { + 'nvim-mini/mini.bracketed', + version = '*' + }, + { + 'nvim-mini/mini.ai', + version = '*' + }, + { + 'nvim-mini/mini.tabline', + version = '*' + }, + { + 'nvim-mini/mini.align', + version = '*' + }, +} diff --git a/nvim/lua/plugins/mini-pairs.lua b/nvim/lua/plugins/mini-pairs.lua deleted file mode 100644 index f20cec9..0000000 --- a/nvim/lua/plugins/mini-pairs.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'nvim-mini/mini.pairs', version = '*', lazy = false} diff --git a/nvim/lua/plugins/mini-statusline.lua b/nvim/lua/plugins/mini-statusline.lua deleted file mode 100644 index 4f16584..0000000 --- a/nvim/lua/plugins/mini-statusline.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'nvim-mini/mini.statusline', version = '*' } diff --git a/nvim/lua/plugins/none-ls.lua b/nvim/lua/plugins/none-ls.lua new file mode 100644 index 0000000..fd28379 --- /dev/null +++ b/nvim/lua/plugins/none-ls.lua @@ -0,0 +1,14 @@ +-- ripped from https://www.lazyvim.org/extras/lsp/none-ls +return { + "nvimtools/none-ls.nvim", + opts = function(_, opts) + local nls = require("null-ls") + opts.root_dir = opts.root_dir + or require("null-ls.utils").root_pattern(".null-ls-root", ".neoconf.json", "Makefile", ".git") + opts.sources = vim.list_extend(opts.sources or {}, { + nls.builtins.formatting.stylua, + nls.builtins.formatting.alejandra, + nls.builtins.formatting.prettier, + }) + end, +} diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua deleted file mode 100644 index 7687988..0000000 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ /dev/null @@ -1,3 +0,0 @@ -return { - "neovim/nvim-lspconfig", -} diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua deleted file mode 100644 index eb0d2fe..0000000 --- a/nvim/lua/plugins/nvim-treesitter.lua +++ /dev/null @@ -1,20 +0,0 @@ -return { - 'nvim-treesitter/nvim-treesitter', - lazy = false, - build = ':TSUpdate', - opts = { - ensure_installed = { - "zig", - "rust", - "java", - "nix", - "yaml", - "typescript", - "javascript", - "lua", - }, - incremental_selection = { - enable = true, - }, - }, -} diff --git a/nvim/lua/plugins/oil-nvim.lua b/nvim/lua/plugins/oil-nvim.lua index af948a3..285b104 100644 --- a/nvim/lua/plugins/oil-nvim.lua +++ b/nvim/lua/plugins/oil-nvim.lua @@ -1,13 +1,24 @@ return { - 'stevearc/oil.nvim', - ---@module 'oil' - ---@type oil.SetupOpts - opts = { - vim.keymap.set("n", "<F2>", "<Cmd>Oil<CR>", { desc = "Open parent directory" }), + { + 'stevearc/oil.nvim', + ---@module 'oil' + ---@type oil.SetupOpts + opts = { + vim.keymap.set("n", "<F2>", "<Cmd>Oil<CR>", { desc = "Open parent directory" }), + }, + -- Optional dependencies + -- dependencies = { { "nvim-mini/mini.icons", opts = {} } }, + dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons + -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. + lazy = false, + }, + { + "refractalize/oil-git-status.nvim", + + dependencies = { + "stevearc/oil.nvim", + }, + + config = true, }, - -- Optional dependencies - dependencies = { { "nvim-mini/mini.icons", opts = {} } }, - -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons - -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. - lazy = false, } diff --git a/nvim/lua/plugins/quicker.lua b/nvim/lua/plugins/quicker.lua new file mode 100644 index 0000000..2fd6aad --- /dev/null +++ b/nvim/lua/plugins/quicker.lua @@ -0,0 +1,13 @@ +return { + 'stevearc/quicker.nvim', + ft = "qf", + ---@module "quicker" + ---@type quicker.SetupOptions + opts = { + vim.keymap.set("n", "<leader>q", function() + require("quicker").toggle() + end, { + desc = "Toggle quickfix", + }) + }, +} diff --git a/nvim/lua/plugins/render-markdown.lua b/nvim/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..7ac5915 --- /dev/null +++ b/nvim/lua/plugins/render-markdown.lua @@ -0,0 +1,13 @@ +return { + 'MeanderingProgrammer/render-markdown.nvim', + dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons + ---@module 'render-markdown' + ---@type render.md.UserConfig + opts = { + completions = { + lsp = { + enabled = true, + }, + }, + }, +} diff --git a/nvim/lua/plugins/todo-comments.lua b/nvim/lua/plugins/todo-comments.lua new file mode 100644 index 0000000..52fc471 --- /dev/null +++ b/nvim/lua/plugins/todo-comments.lua @@ -0,0 +1,9 @@ +return { + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + }, +} |
