add typescript language server
This commit is contained in:
parent
7f84d85328
commit
13993cfabc
2
init.lua
2
init.lua
|
@ -582,7 +582,7 @@ require('lazy').setup({
|
||||||
-- https://github.com/pmizio/typescript-tools.nvim
|
-- https://github.com/pmizio/typescript-tools.nvim
|
||||||
--
|
--
|
||||||
-- But for many setups, the LSP (`tsserver`) will work just fine
|
-- But for many setups, the LSP (`tsserver`) will work just fine
|
||||||
-- tsserver = {},
|
tsserver = {},
|
||||||
--
|
--
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
|
|
|
@ -14,6 +14,15 @@ return {
|
||||||
{ '\\', ':Neotree reveal right<CR>', { desc = 'NeoTree reveal' } },
|
{ '\\', ':Neotree reveal right<CR>', { desc = 'NeoTree reveal' } },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
|
event_handlers = {
|
||||||
|
{
|
||||||
|
event = 'file_opened',
|
||||||
|
handler = function(file_path)
|
||||||
|
--auto close
|
||||||
|
require('neo-tree').close_all()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
filesystem = {
|
filesystem = {
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
|
|
Loading…
Reference in New Issue