-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathconfig.lua
35 lines (30 loc) · 1.1 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- This whole setup assumes you are using LunarVim Nightly with Lazy as the plugin manager
-- LSP
-- For me the default LSP setup automatically installed by LunarVim is fine
-- FORMATTER
lvim.format_on_save = true -- Change this to false if you prefer
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{
command = "prettier",
extra_args = { "--print-width", "100" },
filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
},
}
-- LINTER
local linters = require "lvim.lsp.null-ls.linters"
linters.setup {
{ command = "eslint_d", filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact", "vue" } },
}
-- DEBUGGER CONFIG
reload "user.debugger"
-- DEBUGGER PLUGINS
lvim.plugins = {
-- I prefer to install the plugins for the debugger this way following the official nvim-dap-vscode-js documentation on github by msxdev instead of using mason
{ "mxsdev/nvim-dap-vscode-js" },
{
"microsoft/vscode-js-debug",
lazy = true,
build = "npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out"
},
}