Skip to content

Commit

Permalink
misc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemengo committed Dec 18, 2023
1 parent 3f99154 commit c066a38
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
7 changes: 4 additions & 3 deletions fnl/core.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
(set vim.o.incsearch true)
(set vim.o.ignorecase true)
(set vim.o.smartcase true)
(set vim.o.cmdheight 0)

(let [indent 4]
(set vim.o.shiftwidth indent)
Expand Down Expand Up @@ -149,8 +150,8 @@
(set vim.o.undodir undodir_path)
(set vim.o.undofile true)

;;(vim.cmd "colorscheme github_light")
(vim.cmd "colorscheme monokai-pro")
(set vim.o.background :dark)
;;(vim.cmd "colorscheme catppuccin-latte")
(vim.cmd "colorscheme monokai-pro-spectrum")
(set vim.o.background :light)

(vim.cmd "hi VertSplit ctermbg=NONE guibg=NONE guifg=NONE")
12 changes: 10 additions & 2 deletions fnl/mapping.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@

;; for themes respecting vim.o.background

(fn light-theme []
(vim.cmd "colorscheme github_light")
(set vim.o.background :light))

(fn dark-theme []
(vim.cmd "colorscheme monokai-pro")
(set vim.o.background :dark))

(fn toggle-theme []
(if (= :dark (. vim.o :background))
(set vim.o.background :light)
(set vim.o.background :dark)))
(light-theme)
(dark-theme)))

(fn open-web-commit []
(let [path (vim.fn.expand "%:p:h")
Expand Down
3 changes: 2 additions & 1 deletion fnl/mods/tools/telescope.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
:.local/share/Trash/
:.local/share/nvim/swap/
"code%-other/"]}
:pickers {:live_grep {:mappings {:i {:<c-r> actions.to_fuzzy_refine}}}
:pickers {:colorscheme {:enable_preview true }
:live_grep {:mappings {:i {:<c-r> actions.to_fuzzy_refine}}}
:find_files {:mappings {:i {:<c-r> (fn [buf]
(generate.refine buf
{:prompt_to_prefix true
Expand Down
2 changes: 1 addition & 1 deletion fnl/mods/ui/focus.fnl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(module mods.ui.focus {autoload {focus :focus }})

(focus.setup)
(focus.setup {:enable false})
4 changes: 4 additions & 0 deletions fnl/plugins.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
:lewis6991/impatient.nvim {}
:NLKNguyen/papercolor-theme {}
:fedemengo/github-nvim-theme {}
:catppuccin/nvim {}
:loctvl842/monokai-pro.nvim {:mod :ui.monokai}
:AlexvZyl/nordic.nvim {}

;; ln -s ~/.local/share/nvim/site/pack/packer/opt/copilot.lua ~/.local/share/nvim/site/pack/packer/start/copilot.lua
:zbirenbaum/copilot.lua {:cmd :Copilot
Expand All @@ -56,8 +58,10 @@
:rktjmp/hotpot.nvim {}
:stevearc/profile.nvim {:mod :dev.profile}
:ruifm/gitlinker.nvim {:requires [[:nvim-lua/plenary.nvim]] :mod :dev.gitlinker}
:RRethy/vim-illuminate {}
;; utils
;:nvim-tree/nvim-tree.lua {:mod :tools.nvim-tree}
:wellle/targets.vim {}
:folke/which-key.nvim {:mod :tools.which-key}
:nvim-telescope/telescope-fzf-native.nvim {:run :make}
:nvim-telescope/telescope.nvim {:requires [[:nvim-lua/popup.nvim] [:nvim-lua/plenary.nvim]] :mod :tools.telescope}
Expand Down

0 comments on commit c066a38

Please sign in to comment.