Add ccls and neovim C configurations

This commit is contained in:
Bryan Ramos 2024-07-07 16:31:11 -04:00
parent 2261666707
commit 0c5539b288
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
3 changed files with 10 additions and 13 deletions

View file

@ -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 = {

View file

@ -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

View file

@ -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; [