cleaned up the config some
This commit is contained in:
parent
96add0cf96
commit
f328a7e2f5
4 changed files with 39 additions and 9 deletions
12
init.lua
12
init.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue