diff options
author | awy <awy@awy.one> | 2024-10-31 04:18:19 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-10-31 04:18:19 +0300 |
commit | 85a9749e1a047cdd1693fd6c6241618cd66c6de4 (patch) | |
tree | 788acd7edcac129336cfe8fbc72b7d86d3ce9879 /.config/nvim/lua/plugins | |
parent | 86e69cc8debdd3ba2f0078294e7667590b1e68dd (diff) |
lsp
Diffstat (limited to '.config/nvim/lua/plugins')
-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 } |