1
1
Fork 0

better lsp and linting

This commit is contained in:
Gaiety 2026-04-04 20:15:39 -06:00
parent e42c9129bc
commit 36d393a994
4 changed files with 14 additions and 10 deletions

3
nvim/lua/linter.lua Normal file
View file

@ -0,0 +1,3 @@
vim.pack.add({
'https://github.com/dense-analysis/ale',
})

View file

@ -1,15 +1,16 @@
vim.pack.add({ vim.pack.add({
'https://github.com/neovim/nvim-lspconfig' 'https://github.com/neovim/nvim-lspconfig',
'https://github.com/mason-org/mason.nvim',
'https://github.com/rachartier/tiny-inline-diagnostic.nvim',
}) })
-- .ts .js -- mason
vim.lsp.enable('typescript') require("mason").setup()
-- diagnostics
-- .lua require("tiny-inline-diagnostic").setup({
vim.lsp.config('luals', { -- Choose a preset style for diagnostic appearance
cmd = {'lua-language-server'}, -- Available: "modern", "classic", "minimal", "powerline", "ghost", "simple", "nonerdfont", "amongus"
filetypes = {'lua'}, preset = "modern",
root_markers = {'.luarc.json', '.luarc.jsonc'},
}) })
vim.lsp.enable('luals') require("tiny-inline-diagnostic").enable()