From 608fbb0d71d124570e00c8a146de1a312b91464a Mon Sep 17 00:00:00 2001 From: "Timofey.Kovalev" Date: Sun, 24 Nov 2024 01:25:21 +0300 Subject: [PATCH] commit --- lua/config/keymaping.lua | 2 ++ lua/config/options.lua | 3 +++ lua/plugins/gitsigns.lua | 1 + lua/plugins/nvim-cmp.lua | 8 ++++++-- lua/plugins/treesitter.lua | 15 +++++++++++++++ 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 lua/plugins/treesitter.lua diff --git a/lua/config/keymaping.lua b/lua/config/keymaping.lua index c4ddd58..c873370 100644 --- a/lua/config/keymaping.lua +++ b/lua/config/keymaping.lua @@ -7,6 +7,8 @@ map("n", "", "", { desc = "LSP Forward" }) map("v", "", '"+y', { desc = "Copy selected" }) map({ "i", "n" }, "", '"+p', { desc = "Past" }) +map("n", "", ":w", { desc = "Save file" }) + -- neo-tree map("n", "e", ":Neotree", { desc = "nvimtree focus window" }) map("n", "g", ":Neotree git_status float", { desc = "open gis status" }) diff --git a/lua/config/options.lua b/lua/config/options.lua index ae42844..8126b27 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -1,11 +1,14 @@ local opt = vim.opt local o = vim.o local g = vim.g +local wo = vim.wo opt.fillchars = { eob = " " } g.mapleader = " " +wo.signcolumn = "auto:2-3" + opt.tabstop = 4 o.laststatus = 3 diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index f76b116..0045c77 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -4,6 +4,7 @@ return { event = "User FilePost", opts = function() return { + sign_priority = 100, signs = { delete = { text = "󰗨" }, changedelete = { text = "󰜥" }, diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 0753f06..37abbd7 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -53,8 +53,12 @@ return { cmp.setup({ window = { - completion = cmp.config.window.bordered(), - documentation = cmp.config.window.bordered(), + completion = cmp.config.window.bordered({ + winhighlight = "Normal:Normal,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None", + }), + documentation = cmp.config.window.bordered({ + winhighlight = "Normal:Normal,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None", + }), }, mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.complete(), diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..5c4da99 --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,15 @@ +return { + "nvim-treesitter/nvim-treesitter", + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { "go", "lua", "luadoc", "printf", "vim", "vimdoc" }, + + highlight = { + enable = true, + use_languagetree = true, + }, + + indent = { enable = true }, + }) + end, +}