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"
"rust-analyzer"
])
nodejs-slim_latest
nodejs_latest
prettierd
typescript-language-server
pnpm
nixd
nixfmt-rfc-style

View File

@@ -24,7 +24,7 @@ local function formatter(exe, args)
}
end
local prettier = formatter('prettier', {
local prettier = formatter('prettierd', {
'--config-precedence prefer-file',
'--single-quote',
'--use-tabs',

View File

@@ -11,11 +11,12 @@ return {
mason_lspconfig.setup(lazy.opts)
mason_lspconfig.setup_handlers({
vim.lsp.enable
vim.lsp.enable,
})
vim.lsp.enable('nixd')
vim.lsp.enable('rust_analyzer')
for _, lsp in pairs({ 'nixd', 'rust_analyzer', 'ts_ls' }) do
vim.lsp.enable(lsp)
end
end,
dependencies = {
'mason-org/mason.nvim',
@@ -51,11 +52,16 @@ return {
menu = {
auto_show = true,
draw = {
columns = { { 'kind_icon' }, { 'label', 'label_description', gap = 1 }, { 'kind' } },
columns = {
{ 'kind_icon' },
{ 'label', 'label_description', gap = 1 },
{ 'kind' },
},
components = {
kind_icon = {
text = function(ctx)
local icon, _, _ = common.icons_require().get('lsp', ctx.kind)
local icon, _, _ =
common.icons_require().get('lsp', ctx.kind)
return icon
end,
},