1
0
Fork 0

nvim: use zsh as default shell

This commit is contained in:
Daniel Kempkens 2025-01-01 16:53:39 +01:00
parent fdefbd4990
commit 1fee72709f
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 6 additions and 3 deletions

View file

@ -2,7 +2,7 @@
g vim.g]
;; Preamble
(vim.cmd.filetype "plugin indent on")
(set o.shell :/bin/sh)
(set o.shell _G.nifoc_default_shell)
;; Various Options
(set o.spelllang [:en :de])
(set o.showmode false)

View file

@ -23,6 +23,7 @@
(local ruby #[(exe :irb)])
(local typescript #[(exe :node)])
(local zsh #[(exe :zsh)])
(local default-shell #[_G.nifoc_default_shell])
;; Map filetype to REPL
(local repl-map {: elixir
: erlang
@ -36,8 +37,7 @@
: zsh})
(fn mod.open-shell []
(let [shell (. repl-map :zsh)]
(open-split shell)))
(open-split default-shell))
(fn mod.open-repl []
(let [ft vim.bo.filetype

View file

@ -67,7 +67,10 @@ in
extraLuaConfig = /* lua */ ''
vim.loader.enable()
_G.nifoc_default_shell = '${pkgs.zsh.outPath}/bin/zsh'
_G.nvim_treesitter_parser_directory = os.getenv("HOME") .. "/.local/share/nvim/nvim-treesitter_parser"
vim.opt.runtimepath:prepend(_G.nvim_treesitter_parser_directory)
require('nifoc.nix')