Compare commits

...

2 Commits

Author SHA1 Message Date
e9cdf0b0ec Update nushell config 2023-10-21 13:05:55 +02:00
136356ab82 nvim: nushell language support 2023-10-21 13:05:12 +02:00
3 changed files with 9 additions and 5 deletions

View File

@ -193,9 +193,9 @@ $env.config = {
always_trash: false # always act as if -t was given. Can be overridden with -p always_trash: false # always act as if -t was given. Can be overridden with -p
} }
cd: { #cd: {
abbreviations: false # allows `cd s/o/f` to expand to `cd some/other/folder` # abbreviations: false # allows `cd s/o/f` to expand to `cd some/other/folder`
} #}
table: { table: {
mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other

View File

@ -13,7 +13,7 @@ def create_left_prompt [] {
} }
let dir = ([ let dir = ([
($env.PWD | str substring 0..($home | str length) | str replace --string $home "~"), ($env.PWD | str substring 0..($home | str length) | str replace $home "~"),
($env.PWD | str substring ($home | str length)..) ($env.PWD | str substring ($home | str length)..)
] | str join) ] | str join)
@ -21,7 +21,7 @@ def create_left_prompt [] {
let separator_color = (if (is-admin) { ansi light_red_bold } else { ansi light_green_bold }) let separator_color = (if (is-admin) { ansi light_red_bold } else { ansi light_green_bold })
let path_segment = $"($path_color)($dir)" let path_segment = $"($path_color)($dir)"
$path_segment | str replace --all --string (char path_sep) $"($separator_color)/($path_color)" $path_segment | str replace --all (char path_sep) $"($separator_color)/($path_color)"
} }
def create_right_prompt [] { def create_right_prompt [] {

View File

@ -87,6 +87,10 @@ return require('packer').startup(function(use)
use 'simrat39/rust-tools.nvim' use 'simrat39/rust-tools.nvim'
use 'WhoIsSethDaniel/lualine-lsp-progress.nvim' use 'WhoIsSethDaniel/lualine-lsp-progress.nvim'
-- nushell support
--use { 'LhKipp/nvim-nu', run = function() vim.fn[':TSInstall nu'] end} }
use 'LhKipp/nvim-nu'
-- Completion framework: -- Completion framework:
use 'hrsh7th/nvim-cmp' use 'hrsh7th/nvim-cmp'