[NeoVim] Actually working bootstrap
This commit is contained in:
@@ -8,22 +8,23 @@
|
|||||||
(use! :udayvir-singh/hibiscus.nvim)
|
(use! :udayvir-singh/hibiscus.nvim)
|
||||||
|
|
||||||
(use! "~/.config/nvim/themes/solarized.nvim"
|
(use! "~/.config/nvim/themes/solarized.nvim"
|
||||||
:config (require :settings.solarized))
|
:module :settings.solarized)
|
||||||
|
|
||||||
(use! :nvim-lua/popup.nvim
|
(use! :nvim-lua/popup.nvim
|
||||||
:config (require :popup))
|
:module :popup)
|
||||||
|
|
||||||
(use! :nvim-treesitter/nvim-treesitter
|
(use! :nvim-treesitter/nvim-treesitter
|
||||||
:run ":TSUpdate"
|
:run ":TSUpdate"
|
||||||
:config (require :settings.treesitter))
|
:module :settings.treesitter)
|
||||||
|
|
||||||
(use! :feline-nvim/feline.nvim
|
(use! :feline-nvim/feline.nvim
|
||||||
:requires [:kyazdani42/nvim-web-devicons
|
:requires [:kyazdani42/nvim-web-devicons
|
||||||
"~/.config/nvim/themes/solarized.nvim"]
|
"~/.config/nvim/themes/solarized.nvim"]
|
||||||
:config (require :settings.feline))
|
:after [:solarized.nvim]
|
||||||
|
:module :settings.feline)
|
||||||
|
|
||||||
(use! :s1n7ax/nvim-window-picker
|
(use! :s1n7ax/nvim-window-picker
|
||||||
:config (require :settings.window-picker))
|
:module :settings.window-picker)
|
||||||
|
|
||||||
(use! :nvim-neo-tree/neo-tree.nvim
|
(use! :nvim-neo-tree/neo-tree.nvim
|
||||||
:branch "v2.x"
|
:branch "v2.x"
|
||||||
@@ -32,44 +33,48 @@
|
|||||||
:kyazdani42/nvim-web-devicons
|
:kyazdani42/nvim-web-devicons
|
||||||
:MunifTanjim/nui.nvim
|
:MunifTanjim/nui.nvim
|
||||||
:s1n7ax/nvim-window-picker]
|
:s1n7ax/nvim-window-picker]
|
||||||
:config (require :settings.neo-tree))
|
:after [:nvim-window-picker]
|
||||||
|
:module :settings.neo-tree)
|
||||||
|
|
||||||
(use! :mrjones2014/smart-splits.nvim
|
(use! :mrjones2014/smart-splits.nvim
|
||||||
:config (require :settings.smart-splits))
|
:module :settings.smart-splits)
|
||||||
|
|
||||||
(use! :famiu/bufdelete.nvim
|
(use! :famiu/bufdelete.nvim
|
||||||
:config (require :bufdelete))
|
:module :bufdelete)
|
||||||
|
|
||||||
(use! :akinsho/bufferline.nvim
|
(use! :akinsho/bufferline.nvim
|
||||||
:tag "v2.*"
|
:tag "v2.*"
|
||||||
:requires [:kyazdani42/nvim-web-devicons
|
:requires [:kyazdani42/nvim-web-devicons
|
||||||
:famiu/bufdelete.nvim
|
:famiu/bufdelete.nvim
|
||||||
"~/.config/nvim/themes/solarized.nvim"]
|
"~/.config/nvim/themes/solarized.nvim"]
|
||||||
:config (require :settings.bufferline))
|
:after [:bufdelete.nvim
|
||||||
|
:solarized.nvim]
|
||||||
|
:module :settings.bufferline)
|
||||||
|
|
||||||
(use! :windwp/nvim-autopairs
|
(use! :windwp/nvim-autopairs
|
||||||
:config (setup :nvim-autopairs))
|
:module :settings.autopairs)
|
||||||
|
|
||||||
(use! :lewis6991/gitsigns.nvim
|
(use! :lewis6991/gitsigns.nvim
|
||||||
:config (setup :gitsigns))
|
:module :settings.gitsigns)
|
||||||
|
|
||||||
(use! :declancm/cinnamon.nvim
|
(use! :declancm/cinnamon.nvim
|
||||||
:config (setup :cinnamon))
|
:module :settings.cinnamon)
|
||||||
|
|
||||||
(use! :stevearc/aerial.nvim
|
(use! :stevearc/aerial.nvim
|
||||||
:config (require :settings.aerial))
|
:module :settings.aerial)
|
||||||
|
|
||||||
(use! :nmac427/guess-indent.nvim
|
(use! :nmac427/guess-indent.nvim
|
||||||
:config (setup :guess-indent))
|
:module :settings.guess-indent)
|
||||||
|
|
||||||
(use! :nvim-telescope/telescope.nvim
|
(use! :nvim-telescope/telescope.nvim
|
||||||
:requires [:nvim-lua/plenary.nvim
|
:requires [:nvim-lua/plenary.nvim
|
||||||
:s1n7ax/nvim-window-picker]
|
:s1n7ax/nvim-window-picker]
|
||||||
:config (require :settings.telescope))
|
:after [:nvim-window-picker]
|
||||||
|
:module :settings.telescope)
|
||||||
|
|
||||||
(use! :sindrets/diffview.nvim
|
(use! :sindrets/diffview.nvim
|
||||||
:requires [:nvim-lua/plenary.nvim]
|
:requires [:nvim-lua/plenary.nvim]
|
||||||
:config (require :settings.diffview))
|
:module :settings.diffview)
|
||||||
|
|
||||||
(use! :neovim/nvim-lspconfig
|
(use! :neovim/nvim-lspconfig
|
||||||
:requires [:williamboman/mason-lspconfig.nvim
|
:requires [:williamboman/mason-lspconfig.nvim
|
||||||
@@ -81,10 +86,10 @@
|
|||||||
:saadparwaiz1/cmp_luasnip
|
:saadparwaiz1/cmp_luasnip
|
||||||
:rafamadriz/friendly-snippets
|
:rafamadriz/friendly-snippets
|
||||||
:L3MON4D3/LuaSnip]
|
:L3MON4D3/LuaSnip]
|
||||||
:config (require :settings.lspconfig))
|
:module :settings.lspconfig)
|
||||||
|
|
||||||
(use! :jose-elias-alvarez/null-ls.nvim
|
(use! :jose-elias-alvarez/null-ls.nvim
|
||||||
:config (require :settings.null-ls))
|
:module :settings.null-ls)
|
||||||
|
|
||||||
(use! :lervag/vimtex
|
(use! :lervag/vimtex
|
||||||
:config (require :settings.vimtex)))
|
:module :settings.vimtex))
|
||||||
|
|||||||
3
.config/nvim/fnl/settings/autopairs.fnl
Normal file
3
.config/nvim/fnl/settings/autopairs.fnl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
|
(setup :nvim-autopairs)
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
(import-macros {: setup} :macros)
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
(local colors (require :solarized.colors))
|
(local colors (require :solarized.colors))
|
||||||
|
|
||||||
(setup :bufferline {
|
(setup :bufferline {
|
||||||
:options {:close_command "Bdelete %d"
|
:options {:close_command "Bdelete %d"
|
||||||
:right_mouse_command "Bdelete %d"
|
:right_mouse_command "Bdelete %d"
|
||||||
@@ -12,6 +13,7 @@
|
|||||||
:highlights {:separator {:fg colors.bg_alt}
|
:highlights {:separator {:fg colors.bg_alt}
|
||||||
:separator_visible {:fg colors.bg_alt}
|
:separator_visible {:fg colors.bg_alt}
|
||||||
:separator_selected {:fg colors.bg_alt}}})
|
:separator_selected {:fg colors.bg_alt}}})
|
||||||
|
|
||||||
(map! [n] :<S-Right> ":bnext<CR>")
|
(map! [n] :<S-Right> ":bnext<CR>")
|
||||||
(map! [n] :<S-Left> ":bprevious<CR>")
|
(map! [n] :<S-Left> ":bprevious<CR>")
|
||||||
(map! [n] :q ":Bdelete<CR>")
|
(map! [n] :q ":Bdelete<CR>")
|
||||||
|
|||||||
3
.config/nvim/fnl/settings/cinnamon.fnl
Normal file
3
.config/nvim/fnl/settings/cinnamon.fnl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
|
(setup :cinnamon)
|
||||||
@@ -5,5 +5,6 @@
|
|||||||
:keymaps {:view {:q ":tabc<CR>"}
|
:keymaps {:view {:q ":tabc<CR>"}
|
||||||
:file_panel {:q ":tabc<CR>"}
|
:file_panel {:q ":tabc<CR>"}
|
||||||
:file_history_panel {:q ":tabc<CR>"}}})
|
:file_history_panel {:q ":tabc<CR>"}}})
|
||||||
|
|
||||||
(map! [n] :r ":DiffviewOpen<CR>")
|
(map! [n] :r ":DiffviewOpen<CR>")
|
||||||
(map! [n] :R ":DiffviewFileHistory %<CR>")
|
(map! [n] :R ":DiffviewFileHistory %<CR>")
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
(import-macros {: g! : set!} :hibiscus.vim)
|
(import-macros {: g! : set!} :hibiscus.vim)
|
||||||
|
|
||||||
(g! :maplocalleader ",")
|
(g! :maplocalleader ",")
|
||||||
|
|
||||||
(set! :clipboard "unnamedplus")
|
(set! :clipboard "unnamedplus")
|
||||||
(set! :expandtab true)
|
(set! :expandtab true)
|
||||||
(set! :fileencoding "utf-8")
|
(set! :fileencoding "utf-8")
|
||||||
@@ -13,8 +14,3 @@
|
|||||||
(set! :smartcase true)
|
(set! :smartcase true)
|
||||||
(set! :spelllang "en")
|
(set! :spelllang "en")
|
||||||
(set! :tabstop 2)
|
(set! :tabstop 2)
|
||||||
|
|
||||||
; Startup
|
|
||||||
(if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0))
|
|
||||||
((. (require :neo-tree.command) :_command) (vim.fn.getcwd))
|
|
||||||
((. (require :neo-tree.command) :_command) "show" (vim.fn.getcwd)))
|
|
||||||
|
|||||||
3
.config/nvim/fnl/settings/gitsigns.fnl
Normal file
3
.config/nvim/fnl/settings/gitsigns.fnl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
|
(setup :gitsigns)
|
||||||
3
.config/nvim/fnl/settings/guess-indent.fnl
Normal file
3
.config/nvim/fnl/settings/guess-indent.fnl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
|
(setup :guess-indent)
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
(import-macros {: setup} :macros)
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
(g! :neo_tree_remove_legacy_commands 1)
|
(g! :neo_tree_remove_legacy_commands 1)
|
||||||
|
|
||||||
(setup :neo-tree {
|
(setup :neo-tree {
|
||||||
:close_if_last_window true
|
:close_if_last_window true
|
||||||
:window {:width 30
|
:window {:width 30
|
||||||
@@ -31,6 +32,13 @@
|
|||||||
[:modified]
|
[:modified]
|
||||||
[:diagnostics]
|
[:diagnostics]
|
||||||
[:git_status]]}})
|
[:git_status]]}})
|
||||||
|
|
||||||
(map! [n] :f ":Neotree focus<CR>")
|
(map! [n] :f ":Neotree focus<CR>")
|
||||||
(map! [n] :F (fn [] (exec [[:Neotree "toggle"] [:Neotree "toggle" "action=show"]])))
|
(map! [n] :F (fn [] (exec [[:Neotree "toggle"] [:Neotree "toggle" "action=show"]])))
|
||||||
|
|
||||||
(augroup! :neo-tree [[FileType] [qf] "set nobuflisted|call feedkeys(\"F\")"])
|
(augroup! :neo-tree [[FileType] [qf] "set nobuflisted|call feedkeys(\"F\")"])
|
||||||
|
|
||||||
|
; Startup
|
||||||
|
(if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0))
|
||||||
|
((. (require :neo-tree.command) :_command) (vim.fn.getcwd))
|
||||||
|
((. (require :neo-tree.command) :_command) "show" (vim.fn.getcwd)))
|
||||||
|
|||||||
@@ -2,4 +2,3 @@
|
|||||||
|
|
||||||
(setup :null-ls {
|
(setup :null-ls {
|
||||||
:sources [(. (. (. (require :null-ls) :builtins) :diagnostics) :flake8)]})
|
:sources [(. (. (. (require :null-ls) :builtins) :diagnostics) :flake8)]})
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
(import-macros {: map!} :hibiscus.vim)
|
(import-macros {: map!} :hibiscus.vim)
|
||||||
|
|
||||||
(local smart-splits (require :smart-splits))
|
(local smart-splits (require :smart-splits))
|
||||||
|
|
||||||
(map! [n] :<C-Left> smart-splits.move_cursor_left)
|
(map! [n] :<C-Left> smart-splits.move_cursor_left)
|
||||||
(map! [n] :<C-Down> smart-splits.move_cursor_down)
|
(map! [n] :<C-Down> smart-splits.move_cursor_down)
|
||||||
(map! [n] :<C-Up> smart-splits.move_cursor_up)
|
(map! [n] :<C-Up> smart-splits.move_cursor_up)
|
||||||
|
|||||||
@@ -7,4 +7,5 @@
|
|||||||
(g! :solarized_contrast true)
|
(g! :solarized_contrast true)
|
||||||
(g! :solarized_borders false)
|
(g! :solarized_borders false)
|
||||||
(g! :solarized_disable_background false)
|
(g! :solarized_disable_background false)
|
||||||
|
|
||||||
((. (require :solarized) :set))
|
((. (require :solarized) :set))
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
(import-macros {: setup} :macros)
|
(import-macros {: setup} :macros)
|
||||||
|
|
||||||
(local actions (require :telescope.actions))
|
(local actions (require :telescope.actions))
|
||||||
|
|
||||||
(setup :telescope {
|
(setup :telescope {
|
||||||
:defaults {:mappings {:n {:S actions.file_split
|
:defaults {:mappings {:n {:S actions.file_split
|
||||||
:s actions.file_vsplit}}
|
:s actions.file_vsplit}}
|
||||||
|
|||||||
Reference in New Issue
Block a user