updated setup
This commit is contained in:
108
init.vim
108
init.vim
@@ -168,9 +168,11 @@ nvim_lsp.clangd.setup{on_attach=on_attach
|
||||
--, flags = { debounce_text_changes = 150, }
|
||||
}
|
||||
--nvim_lsp.vimls.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
--nvim_lsp.pylsp.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
nvim_lsp.pylsp.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
--nvim_lsp.bashls.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
--nvim_lsp.yamlls.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
nvim_lsp.texlab.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
nvim_lsp.rust_analyzer.setup{on_attach=on_attach, capabilities=nvim_lsp_status.capabilities}
|
||||
|
||||
EOF
|
||||
|
||||
@@ -301,6 +303,7 @@ lua <<EOF
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {"latex"},
|
||||
},
|
||||
-- indent = {
|
||||
-- enable = true,
|
||||
@@ -336,7 +339,7 @@ nmap <leader>r <Plug>SlimeParagraphSend
|
||||
"===============================================================================
|
||||
|
||||
if exists('g:started_by_firenvim')
|
||||
let g:firenvim_config['.*'] = { 'takeover': 'never' }
|
||||
"let g:firenvim_config['.*'] = { 'takeover': 'never' }
|
||||
imap <C-j> <C-n>
|
||||
set fileformat=dos
|
||||
colorscheme morning
|
||||
@@ -359,3 +362,104 @@ set laststatus=2
|
||||
"===============================================================================
|
||||
|
||||
set updatetime=200
|
||||
|
||||
|
||||
|
||||
"================== Settings related to NVim-Tree.lua ==========================
|
||||
"===============================================================================
|
||||
|
||||
lua <<EOF
|
||||
require'nvim-tree'.setup { -- BEGIN_DEFAULT_OPTS
|
||||
--auto_close = false,
|
||||
auto_reload_on_write = true,
|
||||
disable_netrw = false,
|
||||
--hide_root_folder = false,
|
||||
hijack_cursor = false,
|
||||
hijack_netrw = true,
|
||||
hijack_unnamed_buffer_when_opening = false,
|
||||
--ignore_buffer_on_setup = false,
|
||||
--open_on_setup = false,
|
||||
open_on_tab = false,
|
||||
sort_by = "name",
|
||||
update_cwd = false,
|
||||
view = {
|
||||
width = 30,
|
||||
side = "left",
|
||||
preserve_window_proportions = false,
|
||||
number = false,
|
||||
relativenumber = false,
|
||||
signcolumn = "yes",
|
||||
mappings = {
|
||||
custom_only = false,
|
||||
list = {
|
||||
-- user mappings go here
|
||||
},
|
||||
},
|
||||
},
|
||||
hijack_directories = {
|
||||
enable = true,
|
||||
auto_open = true,
|
||||
},
|
||||
update_focused_file = {
|
||||
enable = false,
|
||||
update_cwd = false,
|
||||
ignore_list = {},
|
||||
},
|
||||
--ignore_ft_on_setup = {},
|
||||
system_open = {
|
||||
cmd = nil,
|
||||
args = {},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = false,
|
||||
show_on_dirs = false,
|
||||
icons = {
|
||||
hint = "",
|
||||
info = "",
|
||||
warning = "",
|
||||
error = "",
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
custom = {},
|
||||
exclude = {},
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = true,
|
||||
timeout = 400,
|
||||
},
|
||||
actions = {
|
||||
change_dir = {
|
||||
enable = true,
|
||||
global = false,
|
||||
},
|
||||
open_file = {
|
||||
quit_on_open = false,
|
||||
resize_window = false,
|
||||
window_picker = {
|
||||
enable = true,
|
||||
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
||||
exclude = {
|
||||
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" },
|
||||
buftype = { "nofile", "terminal", "help" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
trash = {
|
||||
cmd = "trash",
|
||||
require_confirm = true,
|
||||
},
|
||||
log = {
|
||||
enable = false,
|
||||
truncate = false,
|
||||
types = {
|
||||
all = false,
|
||||
config = false,
|
||||
git = false,
|
||||
},
|
||||
},
|
||||
} -- END_DEFAULT_OPTS
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user