Skip to content

Commit

Permalink
Minor plugins config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Akmadan23 committed Oct 28, 2023
1 parent b3114cf commit 2de1c4b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion config/nvim/lua/configs/cmp.lua
Original file line number Diff line number Diff line change
@@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion config/nvim/lua/configs/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 3 additions & 3 deletions config/nvim/lua/configs/luasnips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ return function()
local snips = {
rust = {
mr = {
string = [[
str = [[
match {1} {{
Ok({2}) => {4},
Err({3}) => {5},
Expand All @@ -23,7 +23,7 @@ return function()
},

mo = {
string = [[
str = [[
match {1} {{
Some({2}) => {3},
None => {4},
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions config/nvim/lua/configs/telescope/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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") },
}
2 changes: 1 addition & 1 deletion config/nvim/lua/configs/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2de1c4b

Please sign in to comment.