summaryrefslogtreecommitdiff
path: root/lua/config/set.lua
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-21 22:13:02 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-21 22:13:02 -0600
commit013d70b8fc655e8f7cc010c451d8f2be658aaa11 (patch)
treec6dd5c3de1fe7b36d4cfe1cae2c9d54dd0ddb335 /lua/config/set.lua
parent0d785cd9f3a7903c84846cee64e3c46ebb56ff64 (diff)
add split navigation kb
Diffstat (limited to 'lua/config/set.lua')
-rw-r--r--lua/config/set.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/config/set.lua b/lua/config/set.lua
index 1f4d774..3793a22 100644
--- a/lua/config/set.lua
+++ b/lua/config/set.lua
@@ -38,6 +38,21 @@ 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', {