mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nix] Redo and restructure the entire config
Thanks @KaitlynEthylia :)
This commit is contained in:
parent
19b92cd8fd
commit
2daf5f1b05
13 changed files with 378 additions and 302 deletions
38
nix/home/nvim.nix
Normal file
38
nix/home/nvim.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ self, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim-unwrapped;
|
||||
|
||||
extraConfig = ''source ~/.dotfiles/nvim/init.vim"source ${self}/nvim/init.vim'';
|
||||
|
||||
coc = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
languageserver = {
|
||||
nix = {
|
||||
command = "nil";
|
||||
filetypes = [ "nix" ];
|
||||
rootPatterns = [ "flake.nix" ];
|
||||
"settings.nil" = {
|
||||
"formatting.command" = [ "nixpkgs-fmt" ];
|
||||
};
|
||||
};
|
||||
"go.goPlsOptions" = {
|
||||
completion = true;
|
||||
completeUnimported = true;
|
||||
};
|
||||
rescript = {
|
||||
enable = true;
|
||||
command = "rescript-language-server";
|
||||
args = [ "--node-ipc" ];
|
||||
filetypes = [ "rescript" ];
|
||||
rootPatterns = [ "rescript.json" "bsconfig.json" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue