summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/config/language-servers.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/config/language-servers.lua')
-rw-r--r--.config/nvim/lua/custom/config/language-servers.lua84
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