separate install and config
This commit is contained in:
parent
1f84dc1881
commit
5b66c7c5fa
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
dependencies = { "WhoIsSethDaniel/mason-tool-installer.nvim" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
|
@ -1,35 +0,0 @@
|
||||||
return {"neovim/nvim-lspconfig",
|
|
||||||
config = function()
|
|
||||||
|
|
||||||
local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities()
|
|
||||||
local lspconfig = require('lspconfig')
|
|
||||||
lspconfig.lua_ls.setup {
|
|
||||||
capabilities = lsp_capabilities,
|
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
diagnostics = {
|
|
||||||
globals = { "vim" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- lspconfig.ltex.setup {
|
|
||||||
-- capabilities = lsp_capabilities,
|
|
||||||
-- }
|
|
||||||
-- lspconfig.grammarly.setup {
|
|
||||||
-- capabilities = lsp_capabilities,
|
|
||||||
-- filetypes = { "markdown", "tex", "text", },
|
|
||||||
-- init_options = {
|
|
||||||
-- clientId = "client_"
|
|
||||||
-- },
|
|
||||||
-- root_dir = function(fname)
|
|
||||||
-- return require'lspconfig'.util.find_git_ancestor(fname) or vim.loop.os_homedir()
|
|
||||||
-- end,
|
|
||||||
-- }
|
|
||||||
-- lspconfig.marksman.setup {
|
|
||||||
-- capabilities = lsp_capabilities,
|
|
||||||
-- }
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
return {
|
|
||||||
{
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
dependencies = { "WhoIsSethDaniel/mason-tool-installer.nvim" },
|
|
||||||
config = function()
|
|
||||||
-- import mason
|
|
||||||
local mason = require("mason")
|
|
||||||
local mason_tool_installer = require("mason-tool-installer")
|
|
||||||
|
|
||||||
-- enable mason and configure icons
|
|
||||||
mason.setup({
|
|
||||||
ui = {
|
|
||||||
icons = {
|
|
||||||
package_installed = "✓",
|
|
||||||
package_pending = "➜",
|
|
||||||
package_uninstalled = "✗",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
mason_tool_installer.setup({
|
|
||||||
ensure_installed = {
|
|
||||||
"prettier", -- prettier formatter
|
|
||||||
"stylua", -- lua formatter
|
|
||||||
"isort", -- python formatter
|
|
||||||
"black", -- python formatter
|
|
||||||
"pylint", -- python linter
|
|
||||||
"eslint_d", -- js linter
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
-- {"williamboman/mason-lspconfig.nvim",
|
|
||||||
-- config = function()
|
|
||||||
-- local mason_lspconfig = require("mason-lspconfig")
|
|
||||||
-- mason_lspconfig.setup {
|
|
||||||
-- ensure_installed = { "grammarly", "ltex" },
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
-- }
|
|
||||||
}
|
|
Loading…
Reference in New Issue