33 lines
795 B
Lua
33 lines
795 B
Lua
return {
|
|
{"williamboman/mason.nvim", -- managing LSP servers
|
|
config = function()
|
|
require("mason").setup()
|
|
end
|
|
},
|
|
|
|
{"williamboman/mason-lspconfig.nvim", -- mason configuration lsp
|
|
config = function()
|
|
require("mason-lspconfig").setup({
|
|
ensure_installed = { "lua_ls",
|
|
"ts_ls", "html",
|
|
"marksman"}
|
|
})
|
|
end
|
|
},
|
|
|
|
{"neovim/nvim-lspconfig", -- nvim vrstva ktera implemetuje zmeny
|
|
config = function()
|
|
local lspconfig = require("lspconfig")
|
|
lspconfig.lua_ls.setup({}) -- lua
|
|
lspconfig.marksman.setup({})
|
|
lspconfig.ts_ls.setup({}) -- js
|
|
lspconfig.html.setup({}) -- html
|
|
|
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
|
|
vim.keymap.set({'n', 'v'}, '<space>ca', vim.lsp.buf.code_action, opts)
|
|
end
|
|
}
|
|
}
|
|
|