mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
- Use newer installation for Lazy.nvim - Treesitter: ensure_install sql, bash, jsonc, python, dockerfile plugins - Completion: Use <ctrl+y> to accept. <enter> to accept was interfering with completions that were suggested at end of the line and you don't want to accept but just want to go to the next line - Snacks: disble the abhorrent *smooth* scrolling - Whichkey: More time before pop-up shows (450ms)
25 lines
806 B
Lua
25 lines
806 B
Lua
-- Options available as-is: VimScript,
|
|
-- Options starting with nvim_: lua
|
|
-- To set VimScript options in lua: use either vim.opt (:help vim.opt)
|
|
|
|
-- Load configs from VIM
|
|
local vim_configs = os.getenv("HOME") .. "/.vim/configs.vim"
|
|
if vim.loop.fs_stat(vim_configs) then
|
|
vim.cmd("source " .. vim_configs)
|
|
end
|
|
|
|
vim.opt.undodir = vim.fn.stdpath("config") .. "/undo"
|
|
vim.opt.backupdir = vim.fn.stdpath("config") .. "/backup/"
|
|
|
|
vim.opt.wrap = true
|
|
vim.opt.cursorline = true
|
|
vim.opt.inccommand = "split" -- With :%s command, show the preview in a split instead of inline
|
|
vim.opt.splitkeep = "screen"
|
|
-- Fix markdown indentation settings
|
|
vim.g.markdown_recommended_style = 0
|
|
|
|
vim.g.have_nerd_font = true
|
|
|
|
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
|
|
vim.opt.inccommand = "split"
|