feat: kitty instead of alacritty -> pictures
This commit is contained in:
parent
fb16eec496
commit
f3a0d0d35f
11 changed files with 278 additions and 64 deletions
|
|
@ -18,10 +18,8 @@ require("mason-lspconfig").setup({
|
|||
"cssls", -- css
|
||||
"html", -- html
|
||||
"clangd", -- cpp / c
|
||||
"tsserver", -- javascript / typescript
|
||||
"sumneko_lua", -- lua
|
||||
"pyright", -- python
|
||||
"rust_analyzer", -- rust
|
||||
"cmake", -- cmake
|
||||
"bashls", -- shell
|
||||
"ansiblels", -- ansible
|
||||
|
|
@ -32,12 +30,50 @@ require("mason-lspconfig").setup({
|
|||
})
|
||||
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
-- LSP
|
||||
local on_attach = function(client, bufnr)
|
||||
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc")
|
||||
local optslsp = { noremap = false, silent = true, buffer = bufnr }
|
||||
end
|
||||
|
||||
require("mason-lspconfig").setup_handlers({
|
||||
function(server_name) -- default handler (optional)
|
||||
require("lspconfig")[server_name].setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||
-- Disable virtual_text
|
||||
virtual_text = true,
|
||||
}
|
||||
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
require("lsp-format").setup {}
|
||||
|
||||
local on_attach = function(client)
|
||||
require("lsp-format").on_attach(client)
|
||||
end
|
||||
|
||||
-- special server setups
|
||||
require("clangd_extensions").setup()
|
||||
require("rust-tools").setup({
|
||||
server = {
|
||||
standalone = false,
|
||||
root_dir = require('lspconfig').util.find_git_ancestor,
|
||||
loadOutputiDirs = false,
|
||||
}
|
||||
})
|
||||
require("typescript").setup({
|
||||
disable_commands = false, -- prevent the plugin from creating Vim commands
|
||||
debug = false, -- enable debug logging for commands
|
||||
go_to_source_definition = {
|
||||
fallback = true, -- fall back to standard LSP definition on failure
|
||||
},
|
||||
server = { -- pass options to lspconfig's setup method
|
||||
on_attach = on_attach,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue