mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
add my defaults to be installed by mason
This commit is contained in:
@@ -16,7 +16,9 @@ local function get_root()
|
|||||||
-- Define priority order (higher priority first)
|
-- Define priority order (higher priority first)
|
||||||
local priority_order = {
|
local priority_order = {
|
||||||
'vtsls',
|
'vtsls',
|
||||||
'eslint', -- formatting/linting servers last
|
'jsonls',
|
||||||
|
'bashls',
|
||||||
|
'yamlls',
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Find highest priority client
|
-- Find highest priority client
|
||||||
|
|||||||
@@ -201,7 +201,6 @@ return {
|
|||||||
-- ts_ls = {},
|
-- ts_ls = {},
|
||||||
--
|
--
|
||||||
|
|
||||||
eslint = { enable = true },
|
|
||||||
vtsls = {
|
vtsls = {
|
||||||
root_dir = function(bufnr, cb)
|
root_dir = function(bufnr, cb)
|
||||||
local fname = vim.api.nvim_buf_get_name(bufnr)
|
local fname = vim.api.nvim_buf_get_name(bufnr)
|
||||||
@@ -246,6 +245,14 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
bashls = { enable = true },
|
||||||
|
cssls = { enable = true },
|
||||||
|
html = { enable = true },
|
||||||
|
jsonls = { enable = true },
|
||||||
|
marksman = { enable = true },
|
||||||
|
sqlls = { enable = true },
|
||||||
|
yamlls = { enabled = true },
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type MasonLspconfigSettings
|
---@type MasonLspconfigSettings
|
||||||
@@ -270,6 +277,13 @@ return {
|
|||||||
local ensure_installed = vim.tbl_keys(servers or {})
|
local ensure_installed = vim.tbl_keys(servers or {})
|
||||||
vim.list_extend(ensure_installed, {
|
vim.list_extend(ensure_installed, {
|
||||||
'stylua', -- Used to format Lua code
|
'stylua', -- Used to format Lua code
|
||||||
|
'eslint_d',
|
||||||
|
'prettierd',
|
||||||
|
'checkmake',
|
||||||
|
'hadolint',
|
||||||
|
'shellcheck',
|
||||||
|
'shfmt',
|
||||||
|
'sqlfluff',
|
||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user