add autocmd for ts and js - remove tmux all panes source - change buffer selector layout
Prithu Goswami pg@prithu.dev
Wed, 25 Dec 2024 23:50:26 +0530
1 files changed,
9 insertions(+),
2 deletions(-)
jump to
M
config/nvim/init.lua
→
config/nvim/init.lua
@@ -65,6 +65,11 @@ pattern = { '*.imba' },
command = 'setlocal tabstop=2 noexpandtab sw=0', }) +vim.api.nvim_create_autocmd('FileType', { + pattern = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' }, + command = 'setlocal sw=2', +}) + -- Diagnostics config local signs = { { name = 'DiagnosticSignError', text = '' },@@ -197,7 +202,9 @@ { 'nvim-tree/nvim-web-devicons' },
}, config = function() require('telescope').setup { - pickers = {}, + pickers = { + buffers = require('telescope.themes').get_ivy { previewer = false, border = false, layout_config = { height = 15 } }, + }, defaults = { mappings = { i = {@@ -484,7 +491,7 @@ },
sources = { { name = 'lazydev', group_index = 0 }, { name = 'nvim_lsp' }, - { name = 'tmux', option = { all_panes = true } }, + { name = 'tmux' }, { name = 'luasnip' }, { name = 'buffer' }, { name = 'path' },