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:
30
config/nvim/init.lua
Normal file
30
config/nvim/init.lua
Normal 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'
|
||||
Reference in New Issue
Block a user