You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.7 KiB
Lua
79 lines
1.7 KiB
Lua
require('plugins')
|
|
require('keymap')
|
|
require('autobuf')
|
|
|
|
-- prevent cursor override
|
|
vim.cmd('set guicursor=')
|
|
-- basic settings
|
|
vim.cmd('filetype plugin indent on')
|
|
vim.cmd('set ts=4 sts=4 sw=4 expandtab')
|
|
|
|
-- clipboard
|
|
vim.cmd('set clipboard+=unnamedplus')
|
|
|
|
-- hybrid numbering
|
|
vim.opt.relativenumber = true
|
|
vim.opt.number = true
|
|
vim.opt.cursorline = true
|
|
|
|
vim.opt.compatible = false
|
|
|
|
-- ignores search case unless capital is used
|
|
vim.opt.smartcase = true
|
|
vim.opt.hlsearch = true
|
|
|
|
-- colorscheme and syntax settings
|
|
vim.cmd([[
|
|
syntax enable
|
|
colorscheme hybrid
|
|
hi Normal ctermbg=NONE
|
|
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE gui=undercurl guifg=NONE guibg=NONE guisp=Red
|
|
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE gui=undercurl guifg=NONE guibg=NONE guisp=Blue
|
|
]])
|
|
|
|
-- defaults to transparent
|
|
Transparent = true
|
|
|
|
-- timeouts
|
|
vim.opt.ttimeout = true
|
|
vim.opt.ttimeoutlen = 100
|
|
vim.o.updatetime = 250
|
|
|
|
-- nvim tree basics
|
|
|
|
vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
-- vimwiki changes
|
|
vim.cmd([[
|
|
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
|
\ 'syntax': 'markdown', 'ext':'.md'}]
|
|
]])
|
|
|
|
-- go file settings
|
|
vim.g.go_hightlight_types = 1
|
|
vim.g.go_hightlight_fields = 1
|
|
vim.g.go_hightlight_functions = 1
|
|
vim.g.go_hightlight_function_calls = 1
|
|
vim.g.go_hightlight_operators = 1
|
|
vim.g.go_hightlight_extra_types = 1
|
|
|
|
-- airline settings
|
|
if vim.g.airline_symbols == nil then
|
|
vim.g.airline_symbols = vim.empty_dict()
|
|
end
|
|
|
|
vim.g.airline_powerline_fonts = 1
|
|
vim.g.airline_symbols.linenr = ''
|
|
vim.g.airline_symbols.maxlinenr = ''
|
|
vim.g.airline_symbols.dirty = ''
|
|
|
|
-- vimtex settings
|
|
vim.g.vimtex_view_method = 'zathura'
|
|
vim.cmd([[
|
|
let g:vimtex_quickfix_ignore_filters = {
|
|
\ 'Citation',
|
|
\ 'Font Warning',
|
|
\}
|
|
]])
|