feat(plugins): Add lwpconfig

This commit is contained in:
Jiří Štefka 2024-09-19 01:24:20 +02:00
parent c9c15d8ae1
commit e6c9d72c3f
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
3 changed files with 7 additions and 3 deletions

View file

@ -46,7 +46,7 @@ with final.pkgs.lib; let
cmp-cmdline-history # cmp command line history suggestions
# copilot-lua # Github Copilot https://github.com/zbirenbaum/copilot.lua/
# copilot-cmp # Add Copilot as a cmp source # https://github.com/zbirenbaum/copilot-cmp/
# nvim-lspconfig
nvim-lspconfig
# ^ nvim-cmp extensions
# git integration plugins

View file

@ -3,7 +3,9 @@ if vim.fn.executable('clangd') ~= 1 then
return
end
local root_files = {
require'lspconfig'.clangd.setup{}
--[[ local root_files = {
'compile_commands.json',
'.vscode',
'.git',
@ -14,7 +16,7 @@ vim.lsp.start {
cmd = { 'clangd' },
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
capabilities = require('user.lsp').make_client_capabilities(),
}
} ]]
local dap = require("dap")

View file

@ -7,6 +7,8 @@ if vim.fn.executable(lua_ls_cmd) ~= 1 then
return
end
-- require'lspconfig'.lua_ls.setup{}
local root_files = {
'.luarc.json',
'.luarc.jsonc',