Compare commits
No commits in common. "22bb8c4e70a3e6deb3ef8bc25915730056b738d3" and "10c55a5a283b605ad31817318310c3cae540d4e7" have entirely different histories.
22bb8c4e70
...
10c55a5a28
@ -3,6 +3,7 @@
|
||||
programs.carapace = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
|
@ -52,9 +52,6 @@
|
||||
project-nvim
|
||||
auto-session
|
||||
|
||||
# escape handling
|
||||
better-escape-nvim
|
||||
|
||||
nvim-treesitter.withAllGrammars
|
||||
markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" })
|
||||
toggleterm-nvim
|
||||
|
@ -64,6 +64,3 @@ nnoremap("gq", ":Bdelete<CR>")
|
||||
|
||||
-- toggle search highlighting
|
||||
vim.cmd('nnoremap <expr> * v:hlsearch ? ":nohlsearch<cr>" : "*"')
|
||||
|
||||
-- insert-map jj/jk to escape
|
||||
require("better_escape").setup()
|
||||
|
@ -90,6 +90,7 @@ local servers = {
|
||||
},
|
||||
},
|
||||
["marksman"] = {},
|
||||
["nushell"] = {},
|
||||
["pylsp"] = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
|
36
home-manager/nushell.nix
Normal file
36
home-manager/nushell.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ config, lib, pkgs, user, theme, ... }:
|
||||
{
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
let carapace_completer = {|spans|
|
||||
carapace $spans.0 nushell $spans | from json
|
||||
}
|
||||
$env.config = {
|
||||
show_banner: false,
|
||||
edit_mode: vi
|
||||
shell_integration: true
|
||||
use_kitty_protocol: true
|
||||
completions: {
|
||||
case_sensitive: false # case-sensitive completions
|
||||
quick: true # set to false to prevent auto-selecting completions
|
||||
partial: true # set to false to prevent partial filling of the prompt
|
||||
algorithm: "fuzzy" # prefix or fuzzy
|
||||
external: {
|
||||
# set to false to prevent nushell looking into $env.PATH to find more suggestions
|
||||
enable: true
|
||||
# set to lower can improve completion performance at the cost of omitting some options
|
||||
max_results: 100
|
||||
completer: $carapace_completer # check 'carapace_completer'
|
||||
}
|
||||
}
|
||||
}
|
||||
$env.PATH = ($env.PATH |
|
||||
split row (char esep) |
|
||||
prepend /home/myuser/.apps |
|
||||
append /usr/bin/env
|
||||
)
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
{
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
|
@ -49,6 +49,7 @@
|
||||
./home-manager/gpg
|
||||
./home-manager/carapace.nix
|
||||
./home-manager/zsh.nix
|
||||
./home-manager/nushell.nix
|
||||
./home-manager/starship.nix
|
||||
./home-manager/sway
|
||||
./home-manager/direnv.nix
|
||||
|
Reference in New Issue
Block a user