fix(neovim): use getnixpath util for nvim-dap and lsp, move polish

This moves polish.lua to `lua/`, creates a util.lua file to be loaded
before lazy.nvim so we can use the `getnixpath` util everywhere, and
replaces in polish.lua and lsp.lua the template strings for substitution
with a `getnixpath` equivalent
This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-17 19:00:25 -03:00
parent ef337e45c0
commit a2ff5d1b6a
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
8 changed files with 180 additions and 182 deletions

View file

@ -7,12 +7,10 @@ return {
dependencies = {
{
"tris203/rzls.nvim",
config = function()
---@diagnostic disable-next-line: missing-fields
require("rzls").setup {
path = vim.fn.getnixpath "rzls" .. "/bin/rzls",
}
end,
opts = {
capabilities = vim.lsp.protocol.make_client_capabilities(),
path = vim.fn.getnixpath "rzls" .. "/bin/rzls",
},
},
},
opts = function(_, opts)