cleaned up the config some

This commit is contained in:
Travis Opperud 2024-07-13 16:04:25 -05:00
parent 96add0cf96
commit f328a7e2f5
4 changed files with 39 additions and 9 deletions

View file

@ -339,25 +339,23 @@ require('lazy').setup({
},
})
-- I should put this somewhere else later, but this allows for collapsing folds.
-- I should put all this config somewhere else later
-- this allows for collapsing folds.
vim.opt.foldmethod = 'expr'
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
vim.opt.foldlevelstart = 99
-- relative line numbers and line numbers
vim.opt.nu = true
vim.opt.relativenumber = true
-- tabbing options
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
-- this is transparent background
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
vim.keymap.set('n', '<leader>dt', ':DocsViewToggle<enter>', { desc = 'Toggle Documentation' })
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et