diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-30 11:55:46 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-30 11:55:46 +0200 |
| commit | ccc402964b4e75efa1337672b08c631ebefbb485 (patch) | |
| tree | c03399a3fe96c596e7bcd584b4a6d42fab4660f8 /.config/nvim/lua/custom/config | |
| parent | 03e05cddf822ab08ba5496c74c50115ce52c0772 (diff) | |
Added back C and other languages LSPs and tooling
Diffstat (limited to '.config/nvim/lua/custom/config')
| -rw-r--r-- | .config/nvim/lua/custom/config/language-servers.lua | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/.config/nvim/lua/custom/config/language-servers.lua b/.config/nvim/lua/custom/config/language-servers.lua index 4163628..88b9db9 100644 --- a/.config/nvim/lua/custom/config/language-servers.lua +++ b/.config/nvim/lua/custom/config/language-servers.lua @@ -13,48 +13,48 @@ return { }, }, }, -- lua - -- clangd = { - -- cmd = { - -- 'clangd', - -- '--background-index', - -- '--clang-tidy', - -- '--header-insertion=iwyu', - -- '--completion-style=detailed', - -- '--function-arg-placeholders', - -- '--fallback-style=llvm', - -- }, - -- root_dir = function(filename) - -- return require('lspconfig/util').root_pattern( - -- '.clang-tidy', - -- '.clang-format', - -- 'compile_commands.json', - -- '.git' - -- )(filename) or vim.fn.getcwd() - -- end, - -- init_options = { - -- usePlaceholders = true, - -- completeUnimported = true, - -- clangdFileStatus = true, - -- }, - -- }, -- c/cpp - -- neocmake = { - -- root_dir = function(filename) - -- return require('lspconfig/util').root_pattern( - -- 'CMakePresets.json', - -- 'CTestConfig.cmake', - -- 'build', - -- 'cmake', - -- '.git' -- NOTE: git is last due to monorepos (so it tries to use build/cmake first) - -- )(filename) or vim.fn.getcwd() - -- end, - -- }, - -- pyright = { - -- settings = { - -- python = { - -- pythonPath = '~/python/venv/bin/python', - -- }, - -- }, - -- }, -- python + clangd = { + cmd = { + 'clangd', + '--background-index', + '--clang-tidy', + '--header-insertion=iwyu', + '--completion-style=detailed', + '--function-arg-placeholders', + '--fallback-style=llvm', + }, + root_dir = function(filename) + return require('lspconfig/util').root_pattern( + '.clang-tidy', + '.clang-format', + 'compile_commands.json', + '.git' + )(filename) or vim.fn.getcwd() + end, + init_options = { + usePlaceholders = true, + completeUnimported = true, + clangdFileStatus = true, + }, + }, -- c/cpp + neocmake = { + root_dir = function(filename) + return require('lspconfig/util').root_pattern( + 'CMakePresets.json', + 'CTestConfig.cmake', + 'build', + 'cmake', + '.git' -- NOTE: git is last due to monorepos (so it tries to use build/cmake first) + )(filename) or vim.fn.getcwd() + end, + }, + pyright = { + settings = { + python = { + pythonPath = '~/python/venv/bin/python', + }, + }, + }, -- python bashls = true, -- bash taplo = true, -- toml lemminx = true, -- xml |
