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({
|
||||
'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()
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue