mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -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",
|
"marksman",
|
||||||
"tailwindcss",
|
"tailwindcss",
|
||||||
"bashls",
|
"bashls",
|
||||||
"clangd",
|
"ccls",
|
||||||
"jsonls",
|
"jsonls",
|
||||||
"vuels"
|
"vuels"
|
||||||
})
|
})
|
||||||
|
|
@ -76,13 +76,13 @@ lsp.setup()
|
||||||
|
|
||||||
local cmp_nvim_lsp = require "cmp_nvim_lsp"
|
local cmp_nvim_lsp = require "cmp_nvim_lsp"
|
||||||
|
|
||||||
require("lspconfig").clangd.setup {
|
--require("lspconfig").clangd.setup {
|
||||||
capabilities = cmp_nvim_lsp.default_capabilities(),
|
-- capabilities = cmp_nvim_lsp.default_capabilities(),
|
||||||
cmd = {
|
-- cmd = {
|
||||||
"clangd",
|
-- "clangd",
|
||||||
"--offset-encoding=utf-16",
|
-- "--offset-encoding=utf-16",
|
||||||
},
|
-- },
|
||||||
}
|
--}
|
||||||
|
|
||||||
require("lspconfig").cssls.setup {
|
require("lspconfig").cssls.setup {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,7 @@ vim.opt.expandtab = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4
|
autocmd FileType c,cpp,haskell,python setlocal tabstop=4 shiftwidth=4 softtabstop=4
|
||||||
]])
|
|
||||||
|
|
||||||
vim.cmd([[
|
|
||||||
autocmd FileType haskell setlocal tabstop=4 shiftwidth=4 softtabstop=4
|
|
||||||
]])
|
]])
|
||||||
|
|
||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ let
|
||||||
marksman
|
marksman
|
||||||
sumneko-lua-language-server stylua
|
sumneko-lua-language-server stylua
|
||||||
nodePackages."@tailwindcss/language-server"
|
nodePackages."@tailwindcss/language-server"
|
||||||
|
ccls
|
||||||
];
|
];
|
||||||
|
|
||||||
lsp' = with pkgs.nodePackages; [
|
lsp' = with pkgs.nodePackages; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue