69 lines
1.7 KiB
Lua
69 lines
1.7 KiB
Lua
|
return {
|
||
|
{
|
||
|
"williamboman/mason.nvim",
|
||
|
config = function()
|
||
|
require("mason").setup()
|
||
|
vim.keymap.set('n', '<leader>m', ":Mason<CR>", {})
|
||
|
end
|
||
|
},
|
||
|
{
|
||
|
"williamboman/mason-lspconfig.nvim",
|
||
|
config = function()
|
||
|
require("mason-lspconfig").setup({
|
||
|
ensure_installed = {
|
||
|
"lua_ls",
|
||
|
"rust_analyzer",
|
||
|
"tsserver",
|
||
|
"svelte"
|
||
|
},
|
||
|
automatic_installation = true
|
||
|
})
|
||
|
end
|
||
|
},
|
||
|
{
|
||
|
"neovim/nvim-lspconfig",
|
||
|
config = function()
|
||
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||
|
|
||
|
local lspconfig = require("lspconfig")
|
||
|
|
||
|
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
|
||
|
})
|
||
|
|
||
|
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, {})
|
||
|
end
|
||
|
},
|
||
|
{
|
||
|
"nvim-telescope/telescope-ui-select.nvim",
|
||
|
config = function()
|
||
|
require("telescope").setup {
|
||
|
extensions = {
|
||
|
["ui-select"] = {
|
||
|
require("telescope.themes").get_dropdown {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
-- To get ui-select loaded and working with telescope, you need to call
|
||
|
|
||
|
-- load_extension, somewhere after setup function:
|
||
|
require("telescope").load_extension("ui-select")
|
||
|
end
|
||
|
}
|
||
|
}
|