LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.31k stars 1.17k forks source link

fix: gitsigns, [nvimtree] unknown option: view.height #237

Closed gnmearacaun closed 1 year ago

gnmearacaun commented 1 year ago

There was the following error:

Error processing InsertEnter Autocommands for "*":
Error detected while processing InsertEnter Autocommands for "*":
E5108: Error executing lua /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1513:
attempt to call field 'is_closing' (a nil value)
stack traceback:
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1513: in function 'is_sto
pped'
        ...ck/packer/start/cmp-nvim-lsp/lua/cmp_nvim_lsp/source.lua:16: in func
tion 'is_available'
        ...pack/packer/start/cmp-nvim-lsp/lua/cmp_nvim_lsp/init.lua:57: in func
tion '_on_insert_enter'
        [string ":lua"]:1: in main chunk

The remedy was to use gitsigns.lua from @neovim-basic-ide, which omits the following lines (not sequential):

numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
  linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
  word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`

 current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
 ignore_whitespace = false,
  },
  current_line_blame_formatter_opts = {
    relative_time = false,
 max_file_length = 40000,
},
  yadm = {
    enable = false,
gnmearacaun commented 1 year ago

closes #236