diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2022-09-08 17:29:21 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2022-09-08 17:29:21 +0000 |
commit | b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff (patch) | |
tree | 39576dcd545bb0a1c41c4af9bdf00d89ebb9198f /.config/nvim/lua/general.lua | |
parent | f13e82880cfcb566df62d9d3c787cc021273142e (diff) | |
download | dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.gz dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.bz2 dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.lz dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.xz dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.tar.zst dotfiles-b57d4cb883e8f016cfbc89c87e6594f0c2aef1ff.zip |
New neovim config
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/general.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua new file mode 100644 index 0000000..6732d38 --- /dev/null +++ b/.config/nvim/lua/general.lua @@ -0,0 +1,34 @@ +vim.opt.mouse = "a" +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.termguicolors = true +vim.opt.wrap = false +vim.opt.visualbell = true +vim.opt.undofile = true +vim.opt.backupcopy = "yes" +vim.opt.undolevels = 1000 +vim.opt.wrap = false + +-- Comment the following lines to disable whitespace characters +vim.opt.list = true +vim.opt.listchars:append("space:⋅") +vim.opt.listchars:append("eol:↴") +vim.opt.listchars:append("tab:-->") +vim.cmd [[colorscheme dracula]] + +vim.opt.spell = true +vim.opt.spelllang = "en" + +vim.g.markdown_fenced_languages = { + "ts=typescript"; + "xml=xml"; + "mermaid=mermaid"; +} + +if vim.fn.has("wsl") == 1 then + vim.api.nvim_create_autocmd("TextYankPost", { + group = vim.api.nvim_create_augroup("Yank", { clear = true }); + callback = function() vim.fn.system("clip.exe", vim.fn.getreg("\"")) end; + }) +end + |