init.lua (#1)

* Switch neovim to init.lua from init.vim

switch from coc to inbuilt nvim-lsp

* Added completion with completion-nvim
added most of the plugins from init.vim
This commit is contained in:
Uttarayan Mondal
2021-05-06 02:23:09 +05:30
committed by GitHub
parent 2e750ef16d
commit 75b6b9a13e
12 changed files with 432 additions and 3153 deletions

30
config/nvim/init.lua Normal file
View File

@@ -0,0 +1,30 @@
require('plugins')
require('keymaps')
-- Need to replace this once lua api has vim modes
vim.api.nvim_exec([[
augroup Packer
autocmd!
autocmd BufWritePost init.lua PackerCompile
autocmd BufWritePost plugins.lua PackerCompile
augroup end
]], false)
vim.o.timeoutlen = 700
vim.o.guifont='FiraCode Nerd Font Mono'
vim.o.undodir=vim.fn.stdpath('cache')..'/undodir'
vim.o.undofile = true
vim.o.showmode = false
vim.o.showtabline = 2
vim.o.autoindent = true
vim.o.tabstop=4
vim.o.shiftwidth=4
vim.o.expandtab = true
vim.o.hidden = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.termguicolors = true
-- No clue why window scoped
vim.wo.signcolumn='yes'