2022-11-01 15:15:15 +00:00
|
|
|
-- TODO convert to lua
|
|
|
|
vim.cmd[[
|
|
|
|
let g:python3_host_prog = '~/.pyenv/versions/neovim3/bin/python'
|
|
|
|
|
|
|
|
if executable('ag')
|
|
|
|
let g:ackprg = 'ag --vimgrep'
|
|
|
|
endif
|
|
|
|
|
|
|
|
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
|
|
|
au BufRead,BufNewFile *.md setlocal spell
|
|
|
|
au BufRead,BufNewFile *.code-workspace setlocal filetype=json
|
|
|
|
au BufRead,BufNewFile *.csv setlocal nowrap
|
|
|
|
au BufRead,BufNewFile *.service[a-zA-Z0-9]* setlocal filetype=systemd
|
|
|
|
au TermOpen * setlocal nonumber norelativenumber
|
|
|
|
syntax on
|
|
|
|
|
|
|
|
if &diff
|
|
|
|
highlight! link DiffText MatchParen
|
|
|
|
endif
|
|
|
|
au OptionSet diff highlight! link DiffText MatchParen
|
|
|
|
|
|
|
|
filetype plugin indent on
|
|
|
|
|
|
|
|
]]
|
2022-11-01 15:26:31 +00:00
|
|
|
|
|
|
|
vim.cmd("let &t_ut=''") -- For kitty background colour support
|
|
|
|
vim.opt.updatetime=500
|
|
|
|
vim.opt.mouse="nv"
|
|
|
|
vim.opt.termguicolors=true
|
|
|
|
|
|
|
|
vim.opt.number=true
|
|
|
|
vim.opt.relativenumber=true
|
|
|
|
-- vim.opt.listchars=trail:.,tab:>_ -- TODO
|
|
|
|
vim.opt.list=true
|
|
|
|
vim.opt.wrap=true
|
|
|
|
vim.opt.linebreak=true
|
|
|
|
vim.opt.autoread=true
|
|
|
|
|
|
|
|
vim.opt.expandtab=true
|
|
|
|
vim.opt.autoindent=true
|
|
|
|
vim.opt.smartindent=true
|
|
|
|
|
|
|
|
vim.opt.splitbelow=true
|
|
|
|
vim.opt.splitright=true
|
|
|
|
|
2022-11-01 15:34:28 +00:00
|
|
|
require 'plugins'
|
2022-11-01 16:49:01 +00:00
|
|
|
require 'keymaps'
|
2022-11-01 15:26:31 +00:00
|
|
|
require 'config_lsp'
|
2022-11-01 15:52:02 +00:00
|
|
|
|
|
|
|
vim.notify = require("notify")
|
|
|
|
vim.cmd("colorscheme nightfox") -- TODO
|