diff --git a/home/neovim.lua b/home/neovim.lua new file mode 100644 index 0000000..b5bdaba --- /dev/null +++ b/home/neovim.lua @@ -0,0 +1,9 @@ +-- lualine setup +require('lualine').setup { + options = { + theme = 'tokyonight' + } +} + +-- bufferline setup +require("bufferline").setup{ } diff --git a/home/neovim.nix b/home/neovim.nix index 8811bd1..866966e 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -41,6 +41,7 @@ nvim-treesitter tokyonight-nvim + # Doom-emacs like experience telescope-nvim telescope-zoxide vim-which-key @@ -48,6 +49,7 @@ # Buffer tabs bufferline-nvim + # Developing plugins in Haskell nvim-hs-vim # Language support @@ -56,13 +58,14 @@ vim-markdown ]; + # Note: Lua based config is in ./neovim.lua extraConfig = '' set nobackup set termguicolors " 24-bit colors " let g:tokyonight_style = "day" let g:tokyonight_italic_functions = 1 colorscheme tokyonight - " Use spave instead of \ as leader key, like doom-emacs + " Use space instead of \ as leader key, like doom-emacs map " which-key @@ -77,19 +80,13 @@ nnoremap fb Telescope buffers nnoremap fh Telescope help_tags - " lualine - lua << END - require('lualine').setup { - options = { - theme = 'tokyonight' - } - } - END + + lua << EOF + ${builtins.readFile ./neovim.lua} + EOF " bufferline - lua << EOF - require("bufferline").setup{} - EOF + " TODO: Move these to lua nnoremap [b :BufferLineCycleNext nnoremap b] :BufferLineCyclePrev nnoremap be :BufferLineSortByExtension