aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-10-31 04:18:19 +0300
committerawy <awy@awy.one>2024-10-31 04:18:19 +0300
commit85a9749e1a047cdd1693fd6c6241618cd66c6de4 (patch)
tree788acd7edcac129336cfe8fbc72b7d86d3ce9879 /.config/nvim
parent86e69cc8debdd3ba2f0078294e7667590b1e68dd (diff)
lsp
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/plugins/lsp-config.lua3
-rw-r--r--.config/nvim/lua/plugins/telescope.lua1
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
}