diff options
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/blink.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 4 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/noice.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/nvim-tree.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/nvim-treesitter.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/telescope.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/trouble.lua | 15 |
7 files changed, 31 insertions, 13 deletions
diff --git a/.config/nvim/lua/plugins/blink.lua b/.config/nvim/lua/plugins/blink.lua index a978add..ab3ff82 100644 --- a/.config/nvim/lua/plugins/blink.lua +++ b/.config/nvim/lua/plugins/blink.lua @@ -1,5 +1,7 @@ -return { - "saghen/blink.cmp", +return { "saghen/blink.cmp", + dependencies = { + "saghen/blink.lib" + }, opts = { keymap = { preset = "enter", @@ -38,6 +40,8 @@ return { }, }, opts_extend = { "sources.default" }, - build = "cargo build --release", + build = function() + require('blink.cmp').build():pwait() + end, -- enabled = false } diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 05d55c5..4ab8f1b 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -37,7 +37,8 @@ return { }, rust_analyzer = { settings = { completion = { fullFunctionSignatures = true } } }, ts_ls = {}, - denols = {} + denols = {}, + oxlint = { mason = false } }, setup = {}, inlay_hints = { @@ -198,6 +199,7 @@ return { for server, server_opts in pairs(servers) do if server_opts then server_opts = server_opts == true and {} or server_opts + -- print(server, server_opts.mason == false, not vim.tbl_contains(all_mslp_servers, server)) if server_opts.mason == false or not vim.tbl_contains(all_mslp_servers, server) then setup(server) else diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua index 3c909a9..894e549 100644 --- a/.config/nvim/lua/plugins/noice.lua +++ b/.config/nvim/lua/plugins/noice.lua @@ -77,7 +77,6 @@ return { { find = "%d+ more lines" }, -- p { find = "%d+ fewer lines" }, -- d }, - -- kind = "", }, view = "mini", }, diff --git a/.config/nvim/lua/plugins/nvim-tree.lua b/.config/nvim/lua/plugins/nvim-tree.lua index 8afa105..59c4ecb 100644 --- a/.config/nvim/lua/plugins/nvim-tree.lua +++ b/.config/nvim/lua/plugins/nvim-tree.lua @@ -67,6 +67,9 @@ return { filters = { git_ignored = false, }, + notify = { + absolute_path = false + } }, config = function(_, opts) local api = require "nvim-tree.api" diff --git a/.config/nvim/lua/plugins/nvim-treesitter.lua b/.config/nvim/lua/plugins/nvim-treesitter.lua index 2f8e3cb..e5aadb7 100644 --- a/.config/nvim/lua/plugins/nvim-treesitter.lua +++ b/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -63,6 +63,7 @@ return { if not parser_exists then -- check if parser is already installed + print(vim.inspect(already_installed)) if vim.tbl_contains(already_installed, parser_name) then vim.notify("Parser for " .. parser_name .. " already installed.", vim.log.levels.INFO) init_treesitter() @@ -72,7 +73,8 @@ return { -- treesitter.install({ parser_name }):await(init_treesitter) end else - init_treesitter() + -- FIXME: the parser exists but not installed, shouldn't run + -- init_treesitter() end end, @@ -82,6 +84,7 @@ return { parsers = { "lua", "c", + "css", "vim", "vimdoc", "query", @@ -106,7 +109,10 @@ return { "styled", "nix", "gitignore", - "meson" + "meson", + "jsx", + "tsx", + "slint" -- "d2" }, custom_parsers = { diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 7633996..8c8a06d 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -59,6 +59,7 @@ return { end, desc = "Telescope: live grep in nvim-tree root", }, + { "<Leader>fb", builtin.buffers, desc = "Telescope: buffers" }, } end, cmd = { "Telescope" }, diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua index cc40587..8a21b96 100644 --- a/.config/nvim/lua/plugins/trouble.lua +++ b/.config/nvim/lua/plugins/trouble.lua @@ -44,13 +44,16 @@ return { win = { position = "down", size = 0.4, + wo = { + wrap = true + } }, - preview = { - type = "split", - relative = "win", - position = "right", - size = 0.5, - }, + -- preview = { + -- type = "split", + -- relative = "win", + -- position = "right", + -- size = 0.5, + -- }, }, }, icons = { |
