1
0

chore(nvim): reintroduce typescript

This commit is contained in:
2025-12-30 23:46:29 +01:00
parent 9f8ed18d72
commit 15662647d7
3 changed files with 15 additions and 7 deletions

View File

@@ -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

View File

@@ -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',

View File

@@ -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,
}, },