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]
|
g vim.g]
|
||||||
;; Preamble
|
;; Preamble
|
||||||
(vim.cmd.filetype "plugin indent on")
|
(vim.cmd.filetype "plugin indent on")
|
||||||
(set o.shell :/bin/sh)
|
(set o.shell _G.nifoc_default_shell)
|
||||||
;; Various Options
|
;; Various Options
|
||||||
(set o.spelllang [:en :de])
|
(set o.spelllang [:en :de])
|
||||||
(set o.showmode false)
|
(set o.showmode false)
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
(local ruby #[(exe :irb)])
|
(local ruby #[(exe :irb)])
|
||||||
(local typescript #[(exe :node)])
|
(local typescript #[(exe :node)])
|
||||||
(local zsh #[(exe :zsh)])
|
(local zsh #[(exe :zsh)])
|
||||||
|
(local default-shell #[_G.nifoc_default_shell])
|
||||||
;; Map filetype to REPL
|
;; Map filetype to REPL
|
||||||
(local repl-map {: elixir
|
(local repl-map {: elixir
|
||||||
: erlang
|
: erlang
|
||||||
|
@ -36,8 +37,7 @@
|
||||||
: zsh})
|
: zsh})
|
||||||
|
|
||||||
(fn mod.open-shell []
|
(fn mod.open-shell []
|
||||||
(let [shell (. repl-map :zsh)]
|
(open-split default-shell))
|
||||||
(open-split shell)))
|
|
||||||
|
|
||||||
(fn mod.open-repl []
|
(fn mod.open-repl []
|
||||||
(let [ft vim.bo.filetype
|
(let [ft vim.bo.filetype
|
||||||
|
|
|
@ -67,7 +67,10 @@ in
|
||||||
|
|
||||||
extraLuaConfig = /* lua */ ''
|
extraLuaConfig = /* lua */ ''
|
||||||
vim.loader.enable()
|
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"
|
_G.nvim_treesitter_parser_directory = os.getenv("HOME") .. "/.local/share/nvim/nvim-treesitter_parser"
|
||||||
|
|
||||||
vim.opt.runtimepath:prepend(_G.nvim_treesitter_parser_directory)
|
vim.opt.runtimepath:prepend(_G.nvim_treesitter_parser_directory)
|
||||||
|
|
||||||
require('nifoc.nix')
|
require('nifoc.nix')
|
||||||
|
|
Loading…
Reference in a new issue