Added some more stuff to neovim lua config

This commit is contained in:
Uttarayan Mondal
2021-05-13 20:34:42 +05:30
parent e8189ba975
commit 76f211a525
8 changed files with 142 additions and 50 deletions

View File

@@ -1,3 +1,4 @@
-- local vim = vim
require('plugins')
require('keymaps')
@@ -6,12 +7,21 @@ vim.api.nvim_exec([[
augroup Packer
autocmd!
autocmd BufWritePost init.lua PackerCompile
autocmd BufWritePost keymaps.lua PackerCompile
autocmd BufWritePost plugins.lua PackerCompile
augroup end
]], false)
vim.api.nvim_exec([[
augroup AutoSaveGroup
autocmd!
autocmd BufWinLeave,BufLeave,BufWritePost,BufHidden,QuitPre ?* nested silent! mkview!
autocmd BufWinEnter ?* silent! loadview
augroup end
]], false)
vim.o.timeoutlen = 700
vim.o.guifont='FiraCode Nerd Font Mono'
vim.o.guifont='Hasklug Nerd Font Mono,Hack Nerd Font,NotoEmoji Nerd Font'
vim.o.undodir=vim.fn.stdpath('cache')..'/undodir'
vim.o.undofile = true
@@ -19,8 +29,13 @@ vim.o.undofile = true
vim.o.showmode = false
vim.o.showtabline = 2
vim.o.autoindent = true
vim.o.tabstop=4
vim.o.softtabstop=4
vim.o.shiftwidth=4
vim.bo.shiftwidth=4
vim.o.expandtab = true
vim.o.hidden = true
vim.o.ignorecase = true
@@ -28,3 +43,20 @@ vim.o.smartcase = true
vim.o.termguicolors = true
-- No clue why window scoped
vim.wo.signcolumn='yes'
-- vim.o.modifiable = true
-- vim.bo.modifiable = true
vim.g.dashboard_default_executive = 'fzf'
vim.g.python_highlight_all = 1
vim.g.test = {
default = {
default = {
complete_items = { 'lsp', 'snippet' },
mode = 'file',
},
comment = {},
string = { complete_items = { 'path' } },
},
rust = { { complete_items = {'ts'} } },
}