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

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

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

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