Eslint lsp and fix an nvim-tree issue
This commit is contained in:
parent
4287dfe370
commit
2d81f71b02
|
@ -11,8 +11,14 @@ return function(buffer)
|
||||||
nowait = true
|
nowait = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--[[
|
||||||
|
-- WARN The docs tell us to call default_on_attach
|
||||||
|
-- but doing it causes issues on git commits or when
|
||||||
|
-- no file is loaded
|
||||||
|
--]]
|
||||||
|
|
||||||
-- default mappings
|
-- default mappings
|
||||||
api.config.mappings.default_on_attach(buffer)
|
-- api.config.mappings.default_on_attach(buffer)
|
||||||
|
|
||||||
nmap('<leader><space>', api.tree.toggle, 'File Tree')
|
nmap('<leader><space>', api.tree.toggle, 'File Tree')
|
||||||
nmap('t', api.node.open.tab, 'Toggle Node')
|
nmap('t', api.node.open.tab, 'Toggle Node')
|
||||||
|
|
|
@ -49,3 +49,11 @@ vim.o.completeopt = 'menuone,noselect'
|
||||||
|
|
||||||
-- NOTE: You should make sure your terminal supports this
|
-- NOTE: You should make sure your terminal supports this
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
|
vim.diagnostic.config({
|
||||||
|
virtual_text = false
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Show line diagnostics automatically in hover window
|
||||||
|
vim.o.updatetime = 250
|
||||||
|
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
|
||||||
|
|
|
@ -3,6 +3,7 @@ local servers = {
|
||||||
-- gopls = {},
|
-- gopls = {},
|
||||||
-- pyright = {},
|
-- pyright = {},
|
||||||
-- rust_analyzer = {},
|
-- rust_analyzer = {},
|
||||||
|
eslint = {},
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
|
|
Loading…
Reference in New Issue