From 57dcd8648a80cf632d7295afa1e6e3912a8b2930 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 12 Nov 2022 10:25:07 +0100 Subject: Fix tmux colours and add gitsigns to neovim --- .config/nvim/lua/general.lua | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to '.config/nvim/lua/general.lua') diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua index 088312a..17b6885 100644 --- a/.config/nvim/lua/general.lua +++ b/.config/nvim/lua/general.lua @@ -9,18 +9,29 @@ vim.opt.backupcopy = "yes" vim.opt.undolevels = 1000 vim.opt.wrap = false -vim.opt.tabstop = 4 -vim.opt.softtabstop = -1 -vim.opt.shiftwidth = 4 -vim.opt.expandtab = true -vim.opt.autoindent = true +-- vim.opt.tabstop = 4 +-- vim.opt.softtabstop = -1 +-- vim.opt.shiftwidth = 4 +-- vim.opt.expandtab = true +-- vim.opt.autoindent = true + +vim.cmd [[autocmd FileType typescript setlocal shiftwidth=2 softtabstop=2 expandtab]] +vim.cmd [[autocmd FileType typescriptreact setlocal shiftwidth=2 softtabstop=2 expandtab]] +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 [[filetype indent off]] -- 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.cmd [[hi Normal guibg=NONE ctermbg=NONE]] vim.opt.spell = false vim.opt.spelllang = "en" -- cgit v1.2.3