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 = { M.ui = {
theme = "palenight", theme = "palenight",
theme_toggle = {"doomchad", "palenight",}, theme_toggle = {"palenight", "palenight",},
statusline = { statusline = {
theme = "default" 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 -- typescript
-- lspconfig.tsserver.setup { -- lspconfig.tsserver.setup {

View File

@ -8,3 +8,5 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>") map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>") -- 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 = { ensure_installed = {
"lua-language-server", "lua-language-server",
"clangd", "clangd",
"clang-format",
"stylua", "stylua",
"gopls", "gopls",
"golangci-lint", "golangci-lint",
}, },
}, },
}, },
-- {
-- { "jose-elias-alvarez/null-ls.nvim",
-- "nvim-treesitter/nvim-treesitter", event = "VeryLazy",
-- opts = { opts = function ()
-- ensure_installed = { return require "configs.null-ls"
-- "vim", "lua", "vimdoc", end
-- "html", "css" }
-- },
-- },
-- },
} }