diff --git a/init.lua b/init.lua index 0564ef8..d9f190c 100644 --- a/init.lua +++ b/init.lua @@ -40,10 +40,7 @@ require "mappings" require "telescope-nvim" require "file-icons" - --- git signs , lsp symbols etc require "gitsigns-nvim" -require("lspkind").init() -- hide line numbers , statusline in specific buffers! vim.api.nvim_exec( diff --git a/lua/mappings.lua b/lua/mappings.lua index 9309a68..5f886c2 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -93,7 +93,7 @@ map("s", "", "v:lua.s_tab_complete()", {expr = true}) map("i", "", "v:lua.completions()", {expr = true}) -- Mappings for nvimtree -vim.api.nvim_set_keymap( +map( "n", "", ":NvimTreeToggle", @@ -102,3 +102,5 @@ vim.api.nvim_set_keymap( silent = true } ) + +map("n", "fm", [[ Neoformat]], opt) diff --git a/lua/pluginList.lua b/lua/pluginList.lua index 28000eb..ed359ff 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -30,8 +30,19 @@ return packer.startup( end } - use "onsails/lspkind-nvim" - use "sbdchd/neoformat" + use { + "onsails/lspkind-nvim", + event = "BufRead", + config = function() + require("lspkind").init() + end + } + + use { + "sbdchd/neoformat", + cmd = "Neoformat" + } + use "nvim-lua/plenary.nvim" use "kabouzeid/nvim-lspinstall" diff --git a/lua/telescope-nvim.lua b/lua/telescope-nvim.lua index 77182c5..7511156 100644 --- a/lua/telescope-nvim.lua +++ b/lua/telescope-nvim.lua @@ -72,7 +72,6 @@ vim.api.nvim_set_keymap( vim.api.nvim_set_keymap("n", "fb", [[lua require('telescope.builtin').buffers()]], opt) vim.api.nvim_set_keymap("n", "fh", [[lua require('telescope.builtin').help_tags()]], opt) vim.api.nvim_set_keymap("n", "fo", [[lua require('telescope.builtin').oldfiles()]], opt) -vim.api.nvim_set_keymap("n", "fm", [[ Neoformat]], opt) -- dashboard stuff vim.api.nvim_set_keymap("n", "fw", [[ Telescope live_grep]], opt)