summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2025-10-17 12:47:01 +0300
committerYigit Sever2025-10-17 12:47:01 +0300
commit0b256ce88981c78a30c1dd20b4462d2f6cc26625 (patch)
treef2fb1325b9e6863f0b9aa723d93ac3c62c6266fe
parent1e1807daa65236ea168cda4074f14cafdd61c782 (diff)
downloaddotfiles-0b256ce88981c78a30c1dd20b4462d2f6cc26625.tar.gz
dotfiles-0b256ce88981c78a30c1dd20b4462d2f6cc26625.tar.bz2
dotfiles-0b256ce88981c78a30c1dd20b4462d2f6cc26625.zip
nvim: add clangd
-rw-r--r--.config/nvim/after/ftplugin/c.vim6
-rw-r--r--.config/nvim/lua/plugins/lsp.lua2
2 files changed, 4 insertions, 4 deletions
diff --git a/.config/nvim/after/ftplugin/c.vim b/.config/nvim/after/ftplugin/c.vim
index 25eeecd..41a9917 100644
--- a/.config/nvim/after/ftplugin/c.vim
+++ b/.config/nvim/after/ftplugin/c.vim
@@ -1,4 +1,4 @@
1setlocal tabstop=8 1setlocal tabstop=2
2setlocal softtabstop=8 2setlocal softtabstop=2
3setlocal shiftwidth=8 3setlocal shiftwidth=2
4setlocal noexpandtab 4setlocal noexpandtab
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua
index e710fd7..cb3dcca 100644
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -72,7 +72,7 @@ return {
72 72
73 -- misc. 73 -- misc.
74 local lspconfig = require('lspconfig') 74 local lspconfig = require('lspconfig')
75 local servers = { 'ts_ls', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls', 'gopls' } 75 local servers = { 'ts_ls', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls', 'gopls', 'clangd' }
76 for _, lsp in pairs(servers) do 76 for _, lsp in pairs(servers) do
77 lspconfig[lsp].setup { 77 lspconfig[lsp].setup {
78 on_attach = on_attach, 78 on_attach = on_attach,