refactor: update neovim config to new home-manager options
This commit is contained in:
parent
7d326185a1
commit
bad525d575
@ -1,45 +1,18 @@
|
|||||||
{ config, lib, pkgs, user, theme, ... }:
|
{ pkgs, theme, ... }:
|
||||||
|
let
|
||||||
|
pkg_src = pkgs.unstable;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs.unstable; [
|
|
||||||
xclip
|
|
||||||
|
|
||||||
# language servers
|
|
||||||
lua-language-server
|
|
||||||
terraform-ls
|
|
||||||
tflint
|
|
||||||
nodejs
|
|
||||||
nodePackages.bash-language-server
|
|
||||||
nodePackages.yaml-language-server
|
|
||||||
nodePackages.prettier
|
|
||||||
nodePackages.eslint_d
|
|
||||||
nodePackages.typescript-language-server
|
|
||||||
nodePackages.typescript
|
|
||||||
nodePackages.dockerfile-language-server-nodejs
|
|
||||||
nodePackages.vscode-langservers-extracted
|
|
||||||
nodePackages.volar
|
|
||||||
lldb
|
|
||||||
vscode-extensions.vadimcn.vscode-lldb
|
|
||||||
marksman
|
|
||||||
clang-tools
|
|
||||||
cmake-language-server
|
|
||||||
texlab
|
|
||||||
nixd
|
|
||||||
nixpkgs-fmt
|
|
||||||
];
|
|
||||||
|
|
||||||
# symlink for a stable path
|
# symlink for a stable path
|
||||||
home.file.".vscode-extensions/vscode-lldb".source = pkgs.unstable.vscode-extensions.vadimcn.vscode-lldb;
|
home.file.".vscode-extensions/vscode-lldb".source = pkg_src.vscode-extensions.vadimcn.vscode-lldb;
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.neovim-unwrapped;
|
package = pkg_src.neovim-unwrapped;
|
||||||
plugins = with pkgs.unstable.vimPlugins; [
|
defaultEditor = true;
|
||||||
|
plugins = with pkg_src.vimPlugins; [
|
||||||
# theme
|
# theme
|
||||||
nvim-solarized-lua
|
nvim-solarized-lua
|
||||||
|
|
||||||
@ -113,6 +86,32 @@
|
|||||||
nvim-dap-ui
|
nvim-dap-ui
|
||||||
];
|
];
|
||||||
|
|
||||||
|
withNodeJs = true;
|
||||||
|
|
||||||
|
extraPackages = with pkg_src; [
|
||||||
|
# language servers
|
||||||
|
lua-language-server
|
||||||
|
terraform-ls
|
||||||
|
tflint
|
||||||
|
nodePackages.bash-language-server
|
||||||
|
nodePackages.yaml-language-server
|
||||||
|
nodePackages.prettier
|
||||||
|
nodePackages.eslint_d
|
||||||
|
nodePackages.typescript-language-server
|
||||||
|
nodePackages.typescript
|
||||||
|
nodePackages.dockerfile-language-server-nodejs
|
||||||
|
nodePackages.vscode-langservers-extracted
|
||||||
|
nodePackages.volar
|
||||||
|
lldb
|
||||||
|
vscode-extensions.vadimcn.vscode-lldb
|
||||||
|
marksman
|
||||||
|
clang-tools
|
||||||
|
cmake-language-server
|
||||||
|
texlab
|
||||||
|
nixd
|
||||||
|
nixpkgs-fmt
|
||||||
|
];
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
lua << EOF
|
lua << EOF
|
||||||
vim.o.guifont = "DejaVu Sans Mono:h10"
|
vim.o.guifont = "DejaVu Sans Mono:h10"
|
||||||
|
Reference in New Issue
Block a user