all repos — dotfiles @ 0b3399c18cbf3a63e23e5a6fefbd26dba6eb49d2

linux dotfiles

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
commit

0b3399c18cbf3a63e23e5a6fefbd26dba6eb49d2

parent

869e854494fddb80062c3ae6dfe6ff3e0bc6f029

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M config/nvim/init.luaconfig/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' },