update nvim

This commit is contained in:
yyasha 2024-09-09 14:34:02 +03:00
parent bf492d97c4
commit 5ce9a6842d
4 changed files with 18 additions and 12 deletions

View File

@ -6,7 +6,7 @@ local M = {}
M.ui = {
theme = "palenight",
theme_toggle = {"doomchad", "palenight",},
theme_toggle = {"palenight", "palenight",},
statusline = {
theme = "default"

View File

@ -47,7 +47,13 @@ lspconfig.gopls.setup({
},
})
lspconfig.clangd.setup{}
lspconfig.clangd.setup{
on_attach = function (client, bufnr)
client.server_capabilities.signatureHelpProvider = false
on_attach(client, bufnr)
end,
capabilities = capabilities
}
-- typescript
-- lspconfig.tsserver.setup {

View File

@ -8,3 +8,5 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
map("n", '<leader>fr', function() vim.lsp.buf.references() end, { desc = "References" })

View File

@ -48,20 +48,18 @@ return {
ensure_installed = {
"lua-language-server",
"clangd",
"clang-format",
"stylua",
"gopls",
"golangci-lint",
},
},
},
--
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = {
-- ensure_installed = {
-- "vim", "lua", "vimdoc",
-- "html", "css"
-- },
-- },
-- },
{
"jose-elias-alvarez/null-ls.nvim",
event = "VeryLazy",
opts = function ()
return require "configs.null-ls"
end
}
}