Browse Source

Annoncing my new NeoVim config

master
Julio Biason 2 years ago
parent
commit
d8359f58cd
  1. 41
      content/code/redid-my-nvim-config/index.md
  2. 46
      content/code/redid-my-nvim-config/index.pt.md
  3. BIN
      content/code/redid-my-nvim-config/vim6.png

41
content/code/redid-my-nvim-config/index.md

@ -0,0 +1,41 @@
+++
title = "I Redid My NeoVim Configuration"
date = 2022-01-19
[taxonomies]
tags = ["vim", "neovim", "nvim", "config", "lsp", "treesitter"]
+++
For some obscure reason, my NeoVim install decided it didn't want to
display LSP warnings anymore. So I redid the whole configuration.
<!-- more -->
Believe me, I didn't do 'cause "OMG, so broken". I guess I could have tracked
the problem to the way
[LanguageClient](https://github.com/autozimu/LanguageClient-neovim) was
installed -- it could be even out-of-date, 'cause I updated to NeoVim 0.6
recently -- but I also wanted to install the TreeSitter support, for better
highlight. Those two factors were enough to me to try a different
configuration, so I decided to do the full thing and rewrite the whole
configuration file, using the Lua format.
I started with the [post of Takuya
Matsuyama](https://blog.inkdrop.app/how-to-set-up-neovim-0-5-modern-plugins-lsp-treesitter-etc-542c3d9c9887),
just as reference -- I'm not a user of a package manager (and
there may lie the problem with some outdated plugin) and I really prefer to
work with submodules and whatnot -- a way that is pretty close to what
[Pathogen](https://github.com/tpope/vim-pathogen) does.
As I wanted to move some things from my old configuration to the new, I had to
search on how to "translate" those. That's where I found [a post by Heiker
Curiel](https://vonheikemen.github.io/devlog/tools/configuring-neovim-using-lua/),
which lists old configuration options and how they appear in the Lua config.
The result is that I have a brand sparkling NeoVim install, with all the bells
and wristles:
![](vim6.png "Yes, I do like to write long documentation strings")
The whole configuration file is [in my personal Git
repo](https://git.juliobiason.me/dotfiles.git/tree/nvim).

46
content/code/redid-my-nvim-config/index.pt.md

@ -0,0 +1,46 @@
+++
title = "Eu Refiz Minha Configuração do NeoVim"
date = 2022-01-19
[taxonomies]
tags = ["vim", "neovim", "configuração", "lsp", "treesitter"]
+++
Por algum motivo obscuro, minha instalação do NeoVim não queria mais mostrar os
alertas do LSP. Então eu decidi refazer minha configuração.
<!-- more -->
Acredite-me, eu não fiz porque "PQP, tudo quebrado". Eu acredito que eu poderia
encontrar o problema com a forma como o
[LanguageClient](https://github.com/autozimu/LanguageClient-neovim) estava
instalado -- poderia até mesmo estar desatualizado, já que eu atualizei para o
NeoVim 0.6 recentemente -- mas eu também geria instalar o TreeSitter para ter
um suporte melhor à coloração do fonte. Estes dois fatores foram suficientes
para tentar fazer uma configuração nova, e eu decidi que eu iria fazer a coisa
toda, usando o arquivo de configuração em formato Lua.
Eu comecei com [o post do Takuya
Matsyama](https://blog.inkdrop.app/how-to-set-up-neovim-0-5-modern-plugins-lsp-treesitter-etc-542c3d9c9887)
como referência -- eu não costumo usar gerenciadores de pacote (e provavelmente
aí é que está o problema com o plugin desatualizado) e eu prefiro trabalhar com
submódulos e coisas do tipo -- um formato que é bem próximo da forma como o
[Pathogen](https://github.com/tpope/vim-pathogen) funciona.
Como eu queria mover algumas coisas da minha antiga configuração para a nova,
eu precisei procurar como "traduzí-las". Foi aí que eu encontrei [um post por
Heiker Curiel](https://vonheikemen.github.io/devlog/tools/configuring-neovim-using-lua/),
que lista as antigas opções de configuração e como elas aparecem numa
configuração em Lua.
O resultado é que eu agora tenho uma instalação novinha do NeoVim, com todas as
firulas:
![](vim6.png "Sim, eu gosto de escrever longas descrições para as funções")
O arquivo de configuração (e submódulos) está no [meu repositório pessoal do
Git](https://git.juliobiason.me/dotfiles.git/tree/nvim).
<!--
vim:spelllang=pt:
-->

BIN
content/code/redid-my-nvim-config/vim6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

Loading…
Cancel
Save