summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-12-26 21:17:25 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-12-26 21:17:25 -0600
commit5003540c1ebfa04c784d619fb25dcdc80bfaa3c6 (patch)
tree724a2dc4361b2ed50b46f28ae6b1ca401cc87444 /lua
parent2b3fbe7925a24ac4569ea4bd2d5c4069feb6f81f (diff)
chore: remove unnecessary stuff, tidy up config
Diffstat (limited to 'lua')
-rw-r--r--lua/config/set.lua15
-rw-r--r--lua/plugins/debug.lua6
-rw-r--r--lua/plugins/init.lua4
-rw-r--r--lua/plugins/neo-tree.lua1
4 files changed, 6 insertions, 20 deletions
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('<F1>', dap.step_into)
nmap('<F2>', dap.step_over)
nmap('<F3>', dap.step_out)
- nmap("<leader>du", dapui.toggle, "Toggle [u]i")
- nmap('<leader>db', dap.toggle_breakpoint, "Toggle [b]reakpoint")
+ nmap('<leader>du', dapui.toggle, 'Toggle [u]i')
+ nmap('<leader>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',