diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,4 @@ +vim.opt.tabstop = 8 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = false @@ -24,7 +25,8 @@ if vim.fn.executable('rg') > 0 then vim.opt.grepprg = 'rg --vimgrep' end -vim.cmd[[colorscheme solarized8_high]] +vim.opt.background = "light" +vim.cmd[[colorscheme nofrils-acme]] function SafeCListNav(navdir) -- dir: @@ -83,3 +85,13 @@ vim.api.nvim_create_autocmd("TextYankPost", { vim.highlight.on_yank() end, }) + +-- @func: write lines using lua +function WriteText(toWrite) + if not toWrite then + return + end + local posYX = vim.api.nvim_win_get_cursor(0) + vim.api.nvim_buf_set_text(0, posYX[1]-1, posYX[2], posYX[1]-1, posYX[2], { toWrite }) +end + |