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:
parent
ef337e45c0
commit
a2ff5d1b6a
8 changed files with 180 additions and 182 deletions
|
@ -153,15 +153,7 @@ in
|
|||
|
||||
substituteInPlace $out \
|
||||
--replace-fail "{hostname}" "${config.programs.neovim.nixd.hostname}" \
|
||||
--replace-fail "{location}" "${config.programs.neovim.nixd.location}" \
|
||||
--replace-fail "{pkgs.vue-language-server}" "${pkgs.vue-language-server}"
|
||||
'';
|
||||
|
||||
xdg.configFile."nvim/lua/polish.lua".source = pkgs.runCommand "polish.lua" { } ''
|
||||
cp ${./polish.lua} $out
|
||||
|
||||
substituteInPlace $out \
|
||||
--replace-fail "{pkgs.vscode-extensions.ms-vscode.cpptools}" "${pkgs.vscode-extensions.ms-vscode.cpptools}" \
|
||||
--replace-fail "{location}" "${config.programs.neovim.nixd.location}"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue