Skip to content
stdloPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

Repository files navigation

nvim

Setup

Needs:

  • Neovim 0.12 or later
  • git, for lazy.nvim to install the plugins
  • tree-sitter-cli 0.26.1 or later and a C compiler, for nvim-treesitter to build parsers (brew install tree-sitter-cli on macOS; not the npm package)
  • make and a C compiler for telescope-fzf-native (optional: telescope works without it)
  • ripgrep, for obsidian.nvim's tag and note search (:Obsidian tags)
  • the language servers: clangd, lua-language-server, and typescript-language-server

With Nix, nix develop in this folder gives a shell with all of these, at the versions flake.lock pins. nix profile add . installs the same tools for every shell, except the C compiler and make, which on macOS come from Apple's command line tools. On Windows, where Nix doesn't run, Mason installs the language servers.

Clone into ~/.config/nvim (~/AppData/Local/nvim on Windows) and start nvim: lazy.nvim installs the plugins and, on Windows, Mason installs the language servers. lazy-lock.json pins the plugin versions; :Lazy update moves them.

Coming from nvim-treesitter's old master branch: delete ~/.local/share/nvim/lazy/nvim-treesitter once, so parsers built for master don't linger, then start nvim and let it reinstall.

Godot on WSL

This was a pain to setup for wsl but I got it working (after/ftplugin/gdscript.lua connects to Godot's LSP and opens the /tmp/godot.pipe server).

I tried godot-wsl-lsp and it seemed to obsfucate what was happening. It was unclear how I was supposed to configure godot to work with it.

There's a cmd script for the windows side (it may be worth writing and compiling something for this):

@echo off
wsl wslpath "%~f1" > tmpfile
set /p filepath= < tmpfile
del tmpfile
wsl -e sh -lic nvim --server "/tmp/godot.pipe" --remote-send "<esc>:n %filepath%<CR>:call cursor(%2,%3)<CR>"

Godot should execute that for the external editor. Flags: {file} {line} {col}

WSL 2.0 needs to be configured, in %UserProfile%\.wslconfig:

[wsl2]
networkingMode=mirrored

Useful links, wsl specific:

godot on windows in general:

Todo

plugins

  • configure telescope
  • multiline f and t
  • god ^c

low priority

  • harpoon
  • treesitter
  • autoformat

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages