diff options
-rw-r--r-- | .config/nvim/lua/plugins/lsp-config.lua | 3 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/telescope.lua | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/lsp-config.lua b/.config/nvim/lua/plugins/lsp-config.lua index cb40c4e..6ec699b 100644 --- a/.config/nvim/lua/plugins/lsp-config.lua +++ b/.config/nvim/lua/plugins/lsp-config.lua @@ -9,7 +9,7 @@ return { "williamboman/mason-lspconfig.nvim", config = function() require("mason-lspconfig").setup({ - ensure_installed = { "lua_ls" } + ensure_installed = { "lua_ls", "clangd" } }) end }, @@ -18,6 +18,7 @@ return { config = function() local lspconfig = require("lspconfig") lspconfig.lua_ls.setup({}) + lspconfig.clangd.setup({}) end } } diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 3f83f09..c646155 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -4,5 +4,6 @@ return { config = function() local builtin = require("telescope.builtin") vim.keymap.set('n', '<C-p>', builtin.find_files, {}) + vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) end } |