chore(nvim): reintroduce typescript
This commit is contained in:
@@ -50,7 +50,9 @@ in
|
|||||||
"rustfmt"
|
"rustfmt"
|
||||||
"rust-analyzer"
|
"rust-analyzer"
|
||||||
])
|
])
|
||||||
nodejs-slim_latest
|
nodejs_latest
|
||||||
|
prettierd
|
||||||
|
typescript-language-server
|
||||||
pnpm
|
pnpm
|
||||||
nixd
|
nixd
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ local function formatter(exe, args)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
local prettier = formatter('prettier', {
|
local prettier = formatter('prettierd', {
|
||||||
'--config-precedence prefer-file',
|
'--config-precedence prefer-file',
|
||||||
'--single-quote',
|
'--single-quote',
|
||||||
'--use-tabs',
|
'--use-tabs',
|
||||||
|
|||||||
@@ -11,11 +11,12 @@ return {
|
|||||||
|
|
||||||
mason_lspconfig.setup(lazy.opts)
|
mason_lspconfig.setup(lazy.opts)
|
||||||
mason_lspconfig.setup_handlers({
|
mason_lspconfig.setup_handlers({
|
||||||
vim.lsp.enable
|
vim.lsp.enable,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.enable('nixd')
|
for _, lsp in pairs({ 'nixd', 'rust_analyzer', 'ts_ls' }) do
|
||||||
vim.lsp.enable('rust_analyzer')
|
vim.lsp.enable(lsp)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'mason-org/mason.nvim',
|
'mason-org/mason.nvim',
|
||||||
@@ -51,11 +52,16 @@ return {
|
|||||||
menu = {
|
menu = {
|
||||||
auto_show = true,
|
auto_show = true,
|
||||||
draw = {
|
draw = {
|
||||||
columns = { { 'kind_icon' }, { 'label', 'label_description', gap = 1 }, { 'kind' } },
|
columns = {
|
||||||
|
{ 'kind_icon' },
|
||||||
|
{ 'label', 'label_description', gap = 1 },
|
||||||
|
{ 'kind' },
|
||||||
|
},
|
||||||
components = {
|
components = {
|
||||||
kind_icon = {
|
kind_icon = {
|
||||||
text = function(ctx)
|
text = function(ctx)
|
||||||
local icon, _, _ = common.icons_require().get('lsp', ctx.kind)
|
local icon, _, _ =
|
||||||
|
common.icons_require().get('lsp', ctx.kind)
|
||||||
return icon
|
return icon
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user