This commit is contained in:
abs3nt 2023-07-09 18:09:35 -07:00
parent 3e616f82c2
commit bc5f8b84fc
Signed by: abs3nt
GPG Key ID: FDC6662313FA9386
2 changed files with 53 additions and 0 deletions

View File

@ -67,6 +67,34 @@ require('mason-lspconfig').setup_handlers {
}, },
} }
} }
require("lspconfig")['tsserver'].setup {
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
settings = {
typescript = {
format = {
insertSpaceAfterOpeningAndBeforeClosingEmptyBraces = false,
insertSpaceAfterFunctionKeywordForAnonymousFunctions = true,
semicolons = 'remove',
},
},
},
}
require("lspconfig")['pylsp'].setup {
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
settings = {
pylsp = {
plugins = {
pycodestyle = {
maxLineLength = 120
}
}
}
}
}
require("lspconfig")['gopls'].setup { require("lspconfig")['gopls'].setup {
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,

View File

@ -33,6 +33,31 @@ return {
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' },
}, },
{
'MunifTanjim/prettier.nvim',
config = function()
local prettier = require("prettier")
prettier.setup({
bin = 'prettierd', -- or `'prettierd'` (v0.23.3+)
filetypes = {
"css",
"graphql",
"html",
"javascript",
"javascriptreact",
"json",
"less",
"markdown",
"scss",
"typescript",
"typescriptreact",
"yaml",
},
})
end
},
{ {
'simrat39/rust-tools.nvim', 'simrat39/rust-tools.nvim',
config = function() config = function()