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({
'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
vim.lsp.enable('typescript')
-- mason
require("mason").setup()
-- .lua
vim.lsp.config('luals', {
cmd = {'lua-language-server'},
filetypes = {'lua'},
root_markers = {'.luarc.json', '.luarc.jsonc'},
-- diagnostics
require("tiny-inline-diagnostic").setup({
-- Choose a preset style for diagnostic appearance
-- Available: "modern", "classic", "minimal", "powerline", "ghost", "simple", "nonerdfont", "amongus"
preset = "modern",
})
vim.lsp.enable('luals')
require("tiny-inline-diagnostic").enable()