Mercurial > dotfiles
diff dot_config/nvim/init.vim @ 280:dd8b9d0c0e41
Move lua config to lua.init
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 25 Aug 2020 09:35:59 +0200 |
parents | 7daae1b70617 |
children | dfd62b5a9962 |
line wrap: on
line diff
--- a/dot_config/nvim/init.vim Tue Aug 25 08:56:35 2020 +0200 +++ b/dot_config/nvim/init.vim Tue Aug 25 09:35:59 2020 +0200 @@ -1145,15 +1145,6 @@ autocmd FileType python setlocal path-=** autocmd Filetype python let b:delimitMate_nesting_quotes = ['"', "'"] augroup END -lua << EOF - vim.lsp.set_log_level("debug") -EOF -lua << EOF -require'nvim_lsp'.pyls.setup{ - cmd = {"pyls"}, - on_attach = require'on_attach'.on_attach -} -EOF let g:python_highlight_all=1 " }}} @@ -1283,37 +1274,6 @@ " autocmd BufWritePre * try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry " augroup END " }}} -lua <<EOF -require'nvim-treesitter.configs'.setup { - highlight = { - enable = true, - }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "gnn", - node_incremental = "grn", - scope_incremental = "grc", - node_decremental = "grm", - } - }, - refactor = { - smart_rename = { - enable = true, - keymaps = { - smart_rename = "grr", - }, - }, - navigation = { - enable = true, - keymaps = { - goto_definition = "gnd", - list_definitions = "gnD", - }, - }, - }, -} -EOF " }}} function! SendOSCClipboard(lines, regtype) @@ -1333,6 +1293,8 @@ \ 'cache_enabled': 1, \ } +luafile ~/.config/nvim/init.lua + " Load local vimrc if filereadable($HOME . '/.vimrc.local') source ~/.vimrc.local