From 5003540c1ebfa04c784d619fb25dcdc80bfaa3c6 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 26 Dec 2023 21:17:25 -0600 Subject: chore: remove unnecessary stuff, tidy up config --- lua/config/set.lua | 15 --------------- lua/plugins/debug.lua | 6 +++--- lua/plugins/init.lua | 4 ++-- lua/plugins/neo-tree.lua | 1 + 4 files changed, 6 insertions(+), 20 deletions(-) (limited to 'lua') diff --git a/lua/config/set.lua b/lua/config/set.lua index 3793a22..1f4d774 100644 --- a/lua/config/set.lua +++ b/lua/config/set.lua @@ -38,21 +38,6 @@ vim.opt.foldexpr='nvim_treesitter#foldexpr()' -- Disable folding at startup. vim.nofoldenable=true --- 4 spaces for tab indentation --- not needed, using https://EditorConfig.org instead for 'tpope/vim-sleuth' --- vim.api.nvim_create_autocmd({'FileType', 'BufEnter', 'BufNewFile', 'BufRead'}, { --- pattern = { '*.py' }, --- callback = function() --- vim.cmd[[filetype plugin indent on]] --- -- show existing tab with 4 spaces width --- vim.tabstop=4 --- -- when indenting with '>', use 4 spaces width --- vim.shiftwidth=4 --- -- on pressing tab, insert 4 spaces --- vim.expandtab=true --- end --- }) - -- Highlight on yank local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) vim.api.nvim_create_autocmd('TextYankPost', { diff --git a/lua/plugins/debug.lua b/lua/plugins/debug.lua index b4b7783..07a08f3 100644 --- a/lua/plugins/debug.lua +++ b/lua/plugins/debug.lua @@ -28,8 +28,8 @@ return { nmap('', dap.step_into) nmap('', dap.step_over) nmap('', dap.step_out) - nmap("du", dapui.toggle, "Toggle [u]i") - nmap('db', dap.toggle_breakpoint, "Toggle [b]reakpoint") + nmap('du', dapui.toggle, 'Toggle [u]i') + nmap('db', dap.toggle_breakpoint, 'Toggle [b]reakpoint') dapui.setup({ icons = { expanded = '▾', collapsed = '▸', current_frame = '*' }, @@ -43,7 +43,7 @@ return { step_back = 'b', run_last = '▶▶', terminate = '⏹', - disconnect = "⏏", + disconnect = '⏏', }, }, }) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 47427b0..59d822a 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -2,8 +2,8 @@ return { -- Git related plugins 'tpope/vim-fugitive', 'tpope/vim-rhubarb', - -- Detect tabstop and shiftwidth automatically - -- luevano: not sure how I feel about this, need to check later + -- Detect tabstop and shiftwidth automatically, + -- uses .editorconfig https://editorconfig.org/ 'tpope/vim-sleuth', -- "gc" to comment visual regions/lines { 'numToStr/Comment.nvim', opts = {} }, diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua index 01433cc..346fd5b 100644 --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -1,5 +1,6 @@ return { 'nvim-neo-tree/neo-tree.nvim', + branch = "v3.x", dependencies = { 'nvim-lua/plenary.nvim', 'MunifTanjim/nui.nvim', -- cgit v1.2.3-54-g00ecf