better lsp and linting
This commit is contained in:
parent
e42c9129bc
commit
36d393a994
4 changed files with 14 additions and 10 deletions
3
nvim/lua/linter.lua
Normal file
3
nvim/lua/linter.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
vim.pack.add({
|
||||||
|
'https://github.com/dense-analysis/ale',
|
||||||
|
})
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue