diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-07 10:43:13 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-07 10:43:13 +0000 |
commit | 4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57 (patch) | |
tree | 9a98aee8345128dadb3950f109392cb44ba0d2c2 /.config/nvim/lua/general.lua | |
parent | d40df46b6c003ff2d574d5efc36cecebafe39f6e (diff) | |
download | dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.tar dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.tar.gz dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.tar.bz2 dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.tar.lz dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.tar.xz dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.tar.zst dotfiles-4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57.zip |
Neovim improvements
Diffstat (limited to '.config/nvim/lua/general.lua')
-rw-r--r-- | .config/nvim/lua/general.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua index 4d02f1d..b44ab20 100644 --- a/.config/nvim/lua/general.lua +++ b/.config/nvim/lua/general.lua @@ -10,6 +10,8 @@ vim.opt.undolevels = 1000 vim.opt.wrap = false vim.opt.colorcolumn = "120" vim.opt.scrolloff = 5 +vim.opt.spelllang = "en,nb" +vim.opt.cursorline = true -- vim.opt.tabstop = 4 -- vim.opt.softtabstop = -1 @@ -23,6 +25,9 @@ vim.cmd [[autocmd FileType css setlocal shiftwidth=2 softtabstop=2 expandtab]] vim.cmd [[autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab]] vim.cmd [[autocmd FileType json setlocal shiftwidth=2 softtabstop=2 expandtab]] vim.cmd [[autocmd FileType cs setlocal shiftwidth=4 softtabstop=4 expandtab]] +vim.cmd [[autocmd FileType mail setlocal textwidth=72 colorcolumn=72 spell]] +vim.cmd [[autocmd FileType markdown setlocal textwidth=72 colorcolumn=72 spell]] +vim.cmd [[autocmd FileType gitcommit setlocal textwidth=72 colorcolumn=50,72 spell]] vim.cmd [[filetype indent off]] |