From 2de1c4b8cb5eece37b5f5490a97e0be2d39782bc Mon Sep 17 00:00:00 2001 From: Akmadan23 Date: Sat, 28 Oct 2023 23:34:44 +0200 Subject: [PATCH] Minor plugins config changes --- config/nvim/lua/configs/cmp.lua | 7 ++++++- config/nvim/lua/configs/lualine.lua | 2 +- config/nvim/lua/configs/luasnips.lua | 6 +++--- config/nvim/lua/configs/telescope/keys.lua | 4 ++-- config/nvim/lua/configs/treesitter.lua | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/config/nvim/lua/configs/cmp.lua b/config/nvim/lua/configs/cmp.lua index 62a9f41..5fcfae2 100644 --- a/config/nvim/lua/configs/cmp.lua +++ b/config/nvim/lua/configs/cmp.lua @@ -1,11 +1,16 @@ return function() local cmp = require("cmp") + local border = cmp.config.window.bordered() -- Setup nvim-cmp cmp.setup { + window = { + completion = border, + documentation = border, + }, + sources = { { name = "nvim_lsp" }, - { name = "nvim_lua" }, { name = "luasnip" }, { name = "path", trailing_slash = true }, { name = "buffer", keyword_length = 5 }, diff --git a/config/nvim/lua/configs/lualine.lua b/config/nvim/lua/configs/lualine.lua index 790c7ec..e581956 100644 --- a/config/nvim/lua/configs/lualine.lua +++ b/config/nvim/lua/configs/lualine.lua @@ -65,7 +65,7 @@ return function() }, insert = { - a = { fg = c.bg1, bg = c.blue, gui = "bold" } + a = { fg = c.bg1, bg = c.cyan, gui = "bold" } }, visual = { diff --git a/config/nvim/lua/configs/luasnips.lua b/config/nvim/lua/configs/luasnips.lua index e4702e7..c223bac 100644 --- a/config/nvim/lua/configs/luasnips.lua +++ b/config/nvim/lua/configs/luasnips.lua @@ -6,7 +6,7 @@ return function() local snips = { rust = { mr = { - string = [[ + str = [[ match {1} {{ Ok({2}) => {4}, Err({3}) => {5}, @@ -23,7 +23,7 @@ return function() }, mo = { - string = [[ + str = [[ match {1} {{ Some({2}) => {3}, None => {4}, @@ -44,7 +44,7 @@ return function() local snip = {} for trigger, v in pairs(s) do - table.insert(snip, ls.snippet(trigger, fmt(v.string, v.nodes or {}, v.opts or {}))) + table.insert(snip, ls.snippet(trigger, fmt(v.str, v.nodes or {}, v.opts or {}))) end ls.add_snippets(ft, snip) diff --git a/config/nvim/lua/configs/telescope/keys.lua b/config/nvim/lua/configs/telescope/keys.lua index 5666a9c..152e0e9 100644 --- a/config/nvim/lua/configs/telescope/keys.lua +++ b/config/nvim/lua/configs/telescope/keys.lua @@ -18,8 +18,8 @@ return { { L.."fm", builtin("man_pages") }, { L.."fh", builtin("help_tags") }, { L.."fb", builtin("builtin") }, - { L.."gd", builtin("lsp_definitions", { jump_type = "split" }) }, + { L.."gd", builtin("lsp_definitions", { jump_type = "tab" }) }, { L.."gr", builtin("lsp_references") }, + { L.."nl", ext("notify") }, { L.."u", ext("undo") }, - { L.."n", ext("notify") }, } diff --git a/config/nvim/lua/configs/treesitter.lua b/config/nvim/lua/configs/treesitter.lua index 9fd5950..90703dd 100644 --- a/config/nvim/lua/configs/treesitter.lua +++ b/config/nvim/lua/configs/treesitter.lua @@ -12,9 +12,9 @@ return function() end -- Setup treesitter + ---@diagnostic disable-next-line: missing-fields require("nvim-treesitter.configs").setup { highlight = ON, - autotag = ON, endwise = ON, } end