update conf
This commit is contained in:
@ -62,15 +62,18 @@ return {
|
||||
})
|
||||
|
||||
-- ts_ls: TypeScript/JavaScript/JSX/TSX
|
||||
-- vim.lsp.config('ts_ls', {
|
||||
-- cmd = { 'typescript-language-server', '--stdio' },
|
||||
-- filetypes = {
|
||||
-- 'javascript',
|
||||
-- 'javascriptreact',
|
||||
-- 'typescript',
|
||||
-- 'typescriptreact',
|
||||
-- },
|
||||
-- })
|
||||
vim.lsp.config('ts_ls', {
|
||||
cmd = { 'typescript-language-server', '--stdio' },
|
||||
filetypes = {
|
||||
'javascript',
|
||||
'javascriptreact',
|
||||
'typescript',
|
||||
'typescriptreact',
|
||||
},
|
||||
init_options = {
|
||||
hostInfo = 'neovim',
|
||||
},
|
||||
})
|
||||
|
||||
-- eslint: linting for JS/TS/React projects
|
||||
vim.lsp.config('eslint', {
|
||||
|
||||
@ -17,6 +17,7 @@ return {
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
path_display = { 'smart' },
|
||||
file_ignore_patterns = ignore_patterns,
|
||||
},
|
||||
})
|
||||
|
||||
@ -27,13 +28,10 @@ return {
|
||||
local keymap = vim.keymap
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
keymap.set('n', '<leader>ff', function()
|
||||
builtin.find_files({ hidden = true, no_ignore = true, file_ignore_patterns = ignore_patterns })
|
||||
end, opts)
|
||||
keymap.set('n', '<leader>ff', function() builtin.find_files({ hidden = true }) end, opts)
|
||||
keymap.set('n', '<leader>fh', builtin.oldfiles, opts)
|
||||
keymap.set('n', '<leader>fs', function ()
|
||||
builtin.live_grep({
|
||||
additional_args = { "--no-ignore" },
|
||||
file_ignore_patterns = vim.list_extend(vim.deepcopy(ignore_patterns), { "supabase/migrations/" })
|
||||
})
|
||||
end, opts)
|
||||
|
||||
Reference in New Issue
Block a user