mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Add ccls and neovim C configurations
This commit is contained in:
parent
2261666707
commit
0c5539b288
3 changed files with 10 additions and 13 deletions
|
|
@ -65,7 +65,7 @@ lsp.setup_servers({
|
|||
"marksman",
|
||||
"tailwindcss",
|
||||
"bashls",
|
||||
"clangd",
|
||||
"ccls",
|
||||
"jsonls",
|
||||
"vuels"
|
||||
})
|
||||
|
|
@ -76,13 +76,13 @@ lsp.setup()
|
|||
|
||||
local cmp_nvim_lsp = require "cmp_nvim_lsp"
|
||||
|
||||
require("lspconfig").clangd.setup {
|
||||
capabilities = cmp_nvim_lsp.default_capabilities(),
|
||||
cmd = {
|
||||
"clangd",
|
||||
"--offset-encoding=utf-16",
|
||||
},
|
||||
}
|
||||
--require("lspconfig").clangd.setup {
|
||||
-- capabilities = cmp_nvim_lsp.default_capabilities(),
|
||||
-- cmd = {
|
||||
-- "clangd",
|
||||
-- "--offset-encoding=utf-16",
|
||||
-- },
|
||||
--}
|
||||
|
||||
require("lspconfig").cssls.setup {
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -9,11 +9,7 @@ vim.opt.expandtab = true
|
|||
vim.opt.smartindent = true
|
||||
|
||||
vim.cmd([[
|
||||
autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4
|
||||
]])
|
||||
|
||||
vim.cmd([[
|
||||
autocmd FileType haskell setlocal tabstop=4 shiftwidth=4 softtabstop=4
|
||||
autocmd FileType c,cpp,haskell,python setlocal tabstop=4 shiftwidth=4 softtabstop=4
|
||||
]])
|
||||
|
||||
vim.opt.ignorecase = true
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ let
|
|||
marksman
|
||||
sumneko-lua-language-server stylua
|
||||
nodePackages."@tailwindcss/language-server"
|
||||
ccls
|
||||
];
|
||||
|
||||
lsp' = with pkgs.nodePackages; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue