modules/neovim: add nvim-tree, disable netrw, add airline hotfix

This commit is contained in:
fleaz 2025-04-02 21:28:43 +02:00
parent 93e9736e44
commit b75873b0f4

View file

@ -28,10 +28,8 @@
# Colorscheme # Colorscheme
papercolor-theme papercolor-theme
# Better support for netrw # Filebrowser
vim-vinegar nvim-tree-lua
netrw-nvim
nvim-web-devicons
# Bar at the top for all open buffers # Bar at the top for all open buffers
bufferline-nvim bufferline-nvim
@ -157,6 +155,11 @@
let g:go_highlight_operators = 1 let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1 let g:go_highlight_build_constraints = 1
" Bug with whitespaces. TODO: Remove this line after nvim 0.11
" https://github.com/vim-airline/vim-airline/issues/2704
let g:airline#extensions#whitespace#enabled = 0
" Don't use gopls from vim-go " Don't use gopls from vim-go
let g:go_gopls_enabled = 0 let g:go_gopls_enabled = 0
@ -180,12 +183,12 @@
local hooks = require "ibl.hooks" local hooks = require "ibl.hooks"
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level) hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level)
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_tab_indent_level) hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_tab_indent_level)
require'netrw'.setup{}
require("auto-session").setup { require("auto-session").setup {
auto_save_enabled = true; auto_save_enabled = true;
auto_restore_enabled = true; auto_restore_enabled = true;
} }
require("bufferline").setup{} require("bufferline").setup{}
require("nvim-tree").setup()
require('lspconfig').gopls.setup{} require('lspconfig').gopls.setup{}
require('lspconfig').pyright.setup{} require('lspconfig').pyright.setup{}