From 85a9749e1a047cdd1693fd6c6241618cd66c6de4 Mon Sep 17 00:00:00 2001 From: awy Date: Thu, 31 Oct 2024 04:18:19 +0300 Subject: lsp --- .config/nvim/lua/plugins/lsp-config.lua | 3 ++- .config/nvim/lua/plugins/telescope.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua') 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', '', builtin.find_files, {}) + vim.keymap.set('n', 'fg', builtin.live_grep, {}) end } -- cgit v1.2.3