64 lines
1.7 KiB
Lua
64 lines
1.7 KiB
Lua
|
vim.opt.syntax = 'on'
|
||
|
vim.cmd([[hi MatchParen ctermfg=none ctermbg=none cterm=bold,underline gui=bold,underline guifg=fg guibg=bg
|
||
|
filetype plugin indent on
|
||
|
]])
|
||
|
vim.opt.number = true
|
||
|
-- set relativenumber
|
||
|
vim.opt.relativenumber = true
|
||
|
--vim.opt.path += "**"
|
||
|
vim.opt.swapfile = false
|
||
|
vim.opt.wildmenu = true
|
||
|
vim.opt.backspace = "indent,eol,start"
|
||
|
vim.opt.undodir = "/home/ateijelo/.cache/nvim/undo"
|
||
|
vim.opt.undofile = true
|
||
|
vim.opt.incsearch = true
|
||
|
vim.opt.smartindent = true
|
||
|
vim.opt.ic = true
|
||
|
-- set colorcolumn=88
|
||
|
vim.opt.et = true
|
||
|
vim.opt.ts = 4
|
||
|
vim.opt.sw = 4
|
||
|
--set showmatch
|
||
|
vim.opt.hlsearch = true
|
||
|
--incsearch
|
||
|
vim.cmd([[highlight ColorColumn ctermbg=9]])
|
||
|
|
||
|
for _, mode in ipairs({"n", "i"}) do
|
||
|
vim.api.nvim_set_keymap(mode, "<Up>", "g<Up>", { noremap = true })
|
||
|
vim.api.nvim_set_keymap(mode, "<Down>", "g<Down>", { noremap = true })
|
||
|
vim.api.nvim_set_keymap(mode, "<Left>", "<Nop>", { noremap = true })
|
||
|
vim.api.nvim_set_keymap(mode, "<Right>", "<Nop>", { noremap = true })
|
||
|
vim.api.nvim_set_keymap(mode, "<Down>", "<Nop>", { noremap = true })
|
||
|
vim.api.nvim_set_keymap(mode, "<Up>", "<Nop>", { noremap = true })
|
||
|
end
|
||
|
|
||
|
require('plugins')
|
||
|
require'lspconfig'.pyright.setup{}
|
||
|
|
||
|
|
||
|
-- original init.vim
|
||
|
-- syntax on
|
||
|
-- hi MatchParen ctermfg=none ctermbg=none cterm=bold,underline gui=bold,underline guifg=fg guibg=bg
|
||
|
--
|
||
|
-- filetype plugin indent on
|
||
|
-- set number
|
||
|
-- "set relativenumber
|
||
|
-- set path+=**
|
||
|
-- set noswapfile
|
||
|
-- set wildmenu
|
||
|
-- set backspace=indent,eol,start
|
||
|
-- set undodir=~/.cache/nvim/undo
|
||
|
-- set undofile
|
||
|
-- set incsearch
|
||
|
-- set smartindent
|
||
|
-- set ic
|
||
|
-- "set colorcolumn=88
|
||
|
-- set et
|
||
|
-- set ts=4
|
||
|
-- set sw=4
|
||
|
-- "set showmatch
|
||
|
-- set hlsearch incsearch
|
||
|
-- "highlight ColorColumn ctermbg=9
|
||
|
--
|
||
|
-- lua require('plugins')
|