New nvim config, add mangohud

This commit is contained in:
KaasKop
2024-06-12 20:38:49 +02:00
parent 950723989c
commit f302e2586a
23 changed files with 610 additions and 727 deletions

View File

@@ -1,48 +1,38 @@
return {
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
pyright = {},
marksman = {},
--@type lspconfig.options.tsserver
tsserver = {
keys = {
{
"<leader>co",
function()
vim.lsp.buf.code_action({
apply = true,
context = {
only = { "source.organizeImports.ts" },
diagnostics = {},
},
})
end,
desc = "Organize Imports",
},
{
"<leader>cR",
function()
vim.lsp.buf.code_action({
apply = true,
context = {
only = { "source.removeUnused.ts" },
diagnostics = {},
},
})
end,
desc = "Remove Unused Imports",
},
},
---@diagnostic disable-next-line: missing-fields
settings = {
completions = {
completeFunctionCalls = true,
},
},
},
},
},
}
return {}
-- return {
-- "neovim/nvim-lspconfig",
-- opts = {
-- -- LSP Server Settings
-- ---@type lspconfig.options
-- servers = {
-- lua_ls = {
-- -- Use this to add any additional keymaps
-- -- for specific lsp servers
-- ---@type LazyKeysSpec[]
-- -- keys = {},
-- settings = {
-- Lua = {
-- workspace = {
-- checkThirdParty = false,
-- },
-- codeLens = {
-- enable = true,
-- },
-- completion = {
-- callSnippet = "Replace",
-- },
-- },
-- },
-- },
-- -- tsserver = {},
-- biome = {},
-- volar = {
-- settings = {},
-- },
-- pyright = {},
-- },
-- -- return true if you don't want this server to be setup with lspconfig
-- ---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
-- setup = {},
-- },
-- }