added vitual chars for whitespaces.

This commit is contained in:
Gabe Venberg 2024-01-10 16:04:56 -06:00
parent c7de6a790e
commit ec4a477c3a
2 changed files with 52 additions and 28 deletions

View file

@ -72,6 +72,17 @@ opt.fillchars = 'stl:=,stlnc: ,vert:|,fold:-'
opt.foldcolumn = 'auto:4' opt.foldcolumn = 'auto:4'
opt.foldenable = true opt.foldenable = true
opt.foldignore = '' opt.foldignore = ''
--display whitespace as other chars:
opt.list = true
opt.listchars = {
tab = '>-',
eol = '',
nbsp='',
trail='',
extends = '',
precedes = ''
}
opt.showbreak = ''
--sets colorscheme. to get a list of avalible options, do colorscheme <Space> <C-d> --sets colorscheme. to get a list of avalible options, do colorscheme <Space> <C-d>
vim.opt.background = "dark" vim.opt.background = "dark"
@ -152,7 +163,9 @@ map('n', '<leader>v', ":lua Toggle_venn()", optsWithDesc("toggle venn.nvim"))
map('n', '<leader>j', ':TSJToggle<CR>', optsWithDesc("treesitter split/join")) map('n', '<leader>j', ':TSJToggle<CR>', optsWithDesc("treesitter split/join"))
-- a dedicated floating scratch terminal, seperate from the normal toggleterm terminals. -- a dedicated floating scratch terminal, seperate from the normal toggleterm terminals.
local Terminal = require('toggleterm.terminal').Terminal local Terminal = require('toggleterm.terminal').Terminal
Floatingterm = Terminal:new({ hidden = true, Floatingterm = Terminal:new({
direction="float"}) hidden = true,
direction = "float"
})
vim.api.nvim_set_keymap("n", "<leader>s", ':lua Floatingterm:toggle()<CR>', optsWithDesc("open scratch terminal")) vim.api.nvim_set_keymap("n", "<leader>s", ':lua Floatingterm:toggle()<CR>', optsWithDesc("open scratch terminal"))

View file

@ -68,6 +68,17 @@ opt.fillchars = 'stl:=,stlnc: ,vert:|,fold:-'
opt.foldcolumn = 'auto:4' opt.foldcolumn = 'auto:4'
opt.foldenable = true opt.foldenable = true
opt.foldignore = '' opt.foldignore = ''
--display whitespace as other chars:
opt.list = true
opt.listchars = {
tab = '>-',
eol = '',
nbsp='',
trail='',
extends = '',
precedes = ''
}
opt.showbreak = ''
--keyboard mappings --keyboard mappings
local function optsWithDesc(desc) local function optsWithDesc(desc)