some changes

This commit is contained in:
pika 2024-07-05 22:41:44 +02:00
parent 872a98a430
commit bf7bdf0060
6 changed files with 108 additions and 134 deletions

View file

@ -1,4 +1,4 @@
vim.cmd 'let g:netrw_liststyle = 3'
vim.cmd("let g:netrw_liststyle = 3")
local o = vim.opt
@ -15,7 +15,7 @@ o.softtabstop = 2
o.expandtab = true -- expand tab to spaces
o.autoindent = true -- copy indent from current line when starting new one
o.mouse = 'a'
o.mouse = "a"
o.wrap = false
-- search settings
@ -30,14 +30,14 @@ o.showmode = false
-- turn on termguicolors for tokyonight colorscheme to work
-- (have to use iterm2 or any other true color terminal)
o.termguicolors = true
o.background = 'dark' -- colorschemes that can be light or dark will be made dark
o.signcolumn = 'yes' -- show sign column so that text doesn't shift
o.background = "dark" -- colorschemes that can be light or dark will be made dark
o.signcolumn = "yes" -- show sign column so that text doesn't shift
-- backspace
o.backspace = 'indent,eol,start' -- allow backspace on indent, end of line or insert mode start position
o.backspace = "indent,eol,start" -- allow backspace on indent, end of line or insert mode start position
-- clipboard
o.clipboard:append 'unnamedplus' -- use system clipboard as default register
o.clipboard:append("unnamedplus") -- use system clipboard as default register
-- split windows
o.splitright = true -- split vertical window to the right
@ -46,19 +46,19 @@ o.splitbelow = true -- split horizontal window to the bottom
-- turn off swapfile
o.swapfile = false
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})
-- Set cursor to beam when entering Neovim
vim.cmd [[
vim.cmd([[
augroup ChangeCursorShape
autocmd!
autocmd VimEnter * set guicursor=n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20
autocmd VimLeave * set guicursor=a:ver25
augroup END
]]
]])