Compare commits
No commits in common. "4f743cbe347ffaa7a788ee1c8c52cd953ec7a186" and "2b845c39e97cbc7cb58bc73acde7dfefa3a33f34" have entirely different histories.
4f743cbe34
...
2b845c39e9
@ -27,18 +27,28 @@ return {
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
local server_list = require("mason-lspconfig").get_installed_servers()
|
||||
|
||||
for _, server in pairs(server_list) do
|
||||
lspconfig[server].setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
end
|
||||
lspconfig.lua_ls.setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
lspconfig.tsserver.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
|
||||
})
|
||||
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
||||
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', 'gb', ":b#<CR>")
|
||||
vim.keymap.set({'n', 'v'} , '<leader>ca', vim.lsp.buf.code_action, {})
|
||||
end
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user