Compare commits
2 Commits
2b845c39e9
...
4f743cbe34
Author | SHA1 | Date | |
---|---|---|---|
4f743cbe34 | |||
2022e7da39 |
@ -27,28 +27,18 @@ return {
|
|||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
local server_list = require("mason-lspconfig").get_installed_servers()
|
||||||
capabilities = capabilities
|
|
||||||
})
|
for _, server in pairs(server_list) do
|
||||||
lspconfig.tsserver.setup({
|
lspconfig[server].setup({
|
||||||
capabilities = capabilities
|
|
||||||
})
|
|
||||||
lspconfig.svelte.setup({
|
|
||||||
capabilities = capabilities
|
|
||||||
})
|
|
||||||
lspconfig.rust_analyzer.setup({
|
|
||||||
capabilities = capabilities
|
|
||||||
})
|
|
||||||
lspconfig.docker_compose_language_service.setup({
|
|
||||||
capabilities = capabilities
|
|
||||||
})
|
|
||||||
lspconfig.dockerls.setup({
|
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
|
||||||
vim.keymap.set({'n', 'v'}, '<leader>ca', vim.lsp.buf.code_action, {})
|
vim.keymap.set({'n', 'v'}, '<leader>ca', vim.lsp.buf.code_action, {})
|
||||||
|
vim.keymap.set('n', 'gb', ":b#<CR>")
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user