nvim: use zsh as default shell
This commit is contained in:
parent
fdefbd4990
commit
1fee72709f
3 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue