Use tsgo
This commit is contained in:
parent
c89e8e7e42
commit
a7fe2a3fe6
2
init.lua
2
init.lua
|
|
@ -219,6 +219,8 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable 'tsgo'
|
||||||
|
|
||||||
-- [[ Install `lazy.nvim` plugin manager ]]
|
-- [[ Install `lazy.nvim` plugin manager ]]
|
||||||
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
||||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
return {
|
||||||
|
cmd = { 'tsgo', '--lsp', '--stdio' },
|
||||||
|
filteypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
|
||||||
|
root_markers = { 'tsconfig.json', 'package.json', '.git' },
|
||||||
|
}
|
||||||
|
|
@ -84,14 +84,7 @@ return {
|
||||||
dependencies = { 'echasnovski/mini.icons' },
|
dependencies = { 'echasnovski/mini.icons' },
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function()
|
config = function()
|
||||||
require('fzf-lua').setup {
|
require('fzf-lua').setup {}
|
||||||
grep = {
|
|
||||||
formatter = 'path.filename_first',
|
|
||||||
},
|
|
||||||
files = {
|
|
||||||
formatter = 'path.filename_first', -- places file name first
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local builtin = require 'fzf-lua'
|
local builtin = require 'fzf-lua'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue