Cleanup and fixes

This commit is contained in:
Leon Kowarschick 2023-10-06 14:11:05 +02:00
parent 1d538b249f
commit 5e1361cd92
Signed by: ElKowar
GPG key ID: 72C759DA738DE3A2
12 changed files with 99 additions and 125 deletions

View file

@ -4,7 +4,8 @@
(al colors dots.colors) (al colors dots.colors)
(al bufferline bufferline) (al bufferline bufferline)
(print (vim.inspect colors)) (vim.cmd "hi link BufferLineTabSeparatorSelected BufferLineSeparatorSelected")
(vim.cmd "hi link BufferLineTabSeparator BufferLineSeparator")
(fn setup [] (fn setup []
; :h bufferline-lua-highlights ; :h bufferline-lua-highlights

View file

@ -1,8 +1,15 @@
(import-macros m :macros) (import-macros m :macros)
(m.al utils dots.utils)
(fn setup []
(set vim.g.user_emmet_mode "n") (set vim.g.user_emmet_mode "n")
(set vim.g.user_emmet_leader_key "<leader>e") (set vim.g.user_emmet_leader_key "<leader>e")
(set vim.g.user_emmet_settings {:javascript.jsx {:extends "jsx"} (set vim.g.user_emmet_settings {:javascript.jsx {:extends "jsx"}
:typescript.jsx {:extends "jsx"}}) :typescript.jsx {:extends "jsx"}}))
[(utils.plugin
:mattn/emmet-vim
{:lazy true
:config setup})]
[]

View file

@ -17,10 +17,6 @@
(plugin :norcalli/nvim.lua) (plugin :norcalli/nvim.lua)
(plugin :kyazdani42/nvim-web-devicons) (plugin :kyazdani42/nvim-web-devicons)
(plugin :folke/which-key.nvim) (plugin :folke/which-key.nvim)
(plugin :folke/todo-comments.nvim
{:lazy true
:event "VeryLazy"
:config #(require "dots.plugins.todo-comments")})
(plugin :ckipp01/nvim-jenkinsfile-linter (plugin :ckipp01/nvim-jenkinsfile-linter
{:dependencies ["nvim-lua/plenary.nvim"]}) {:dependencies ["nvim-lua/plenary.nvim"]})
(plugin :psliwka/vim-smoothie) (plugin :psliwka/vim-smoothie)
@ -34,11 +30,6 @@
(plugin :tweekmonster/startuptime.vim (plugin :tweekmonster/startuptime.vim
{:cmd ["StartupTime"]}) {:cmd ["StartupTime"]})
(plugin :folke/zen-mode.nvim
{:config #(require "dots.plugins.zen-mode")
:cmd ["ZenMode"]})
(plugin :folke/twilight.nvim
{:config #(require "dots.plugins.twilight")})
(plugin :moll/vim-bbye (plugin :moll/vim-bbye
{:lazy true :cmd [:Bdelete :Bwipeout]}) {:lazy true :cmd [:Bdelete :Bwipeout]})
(plugin :petertriho/nvim-scrollbar (plugin :petertriho/nvim-scrollbar
@ -111,21 +102,6 @@
{:cmd "CodeActionMenu" {:cmd "CodeActionMenu"
:config #(set vim.g.code_action_menu_show_details false)}) :config #(set vim.g.code_action_menu_show_details false)})
(plugin :folke/trouble.nvim
{:lazy true
:config #(require "dots.plugins.trouble")
:cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]})
; :elkowar/trouble.nvim {:branch "fix_error_on_nil_window"
; :config #(require "dots.plugins.trouble")
; :cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]}
(plugin :simrat39/symbols-outline.nvim
{:lazy true
:cmd ["SymbolsOutline" "SymbolsOutlineClose" "SymbolsOutlineOpen"]
:config #(require "dots.plugins.symbols-outline")})
(plugin :smjonas/inc-rename.nvim (plugin :smjonas/inc-rename.nvim
{:config #(setup :inc_rename {:input_buffer_type "dressing"})}) {:config #(setup :inc_rename {:input_buffer_type "dressing"})})
; >>> ; >>>
@ -146,10 +122,6 @@
{:config #(set vim.g.antifennel_executable "/home/leon/tmp/antifennel/antifennel")}) {:config #(set vim.g.antifennel_executable "/home/leon/tmp/antifennel/antifennel")})
(plugin :Olical/conjure {:ft ["fennel"]}) (plugin :Olical/conjure {:ft ["fennel"]})
(plugin :eraserhd/parinfer-rust {:build "cargo build --release"}) (plugin :eraserhd/parinfer-rust {:build "cargo build --release"})
(plugin :lervag/vimtex
{:ft ["latex" "tex"]
:config #(require :dots.plugins.vimtex)})
(plugin :kmonad/kmonad-vim) (plugin :kmonad/kmonad-vim)
(plugin :elkowar/yuck.vim {:ft ["yuck"]}) (plugin :elkowar/yuck.vim {:ft ["yuck"]})
(plugin :cespare/vim-toml {:ft ["toml"]}) (plugin :cespare/vim-toml {:ft ["toml"]})
@ -161,9 +133,6 @@
(plugin :leafgarland/typescript-vim {:ft ["typescript" "typescript-react" "javascript"]}) (plugin :leafgarland/typescript-vim {:ft ["typescript" "typescript-react" "javascript"]})
(plugin :HerringtonDarkholme/yats.vim {}) ; typescript syntax highlighting (plugin :HerringtonDarkholme/yats.vim {}) ; typescript syntax highlighting
(plugin :mxw/vim-jsx {}) (plugin :mxw/vim-jsx {})
(plugin :mattn/emmet-vim
{:lazy true
:config #(require "dots.plugins.emmet")})
(plugin :purescript-contrib/purescript-vim {:ft ["purescript"]}) (plugin :purescript-contrib/purescript-vim {:ft ["purescript"]})
(plugin :derekelkins/agda-vim {:ft ["agda"]}) (plugin :derekelkins/agda-vim {:ft ["agda"]})
(plugin :neovimhaskell/haskell-vim { :ft ["haskell"]}) (plugin :neovimhaskell/haskell-vim { :ft ["haskell"]})

View file

@ -1,5 +0,0 @@
(import-macros m :macros)
(local symbols-outline (require :symbols-outline))
; (symbols-outline.setup {:highlight_hovered_item true :show_guides true})
[]

View file

@ -1,12 +1,20 @@
(import-macros m :macros) (import-macros m :macros)
(m.al a aniseed.core) (m.al a nfnl.core)
(m.al utils dots.utils)
(m.al todo-comments todo-comments) (m.al todo-comments todo-comments)
(fn setup []
(todo-comments.setup (todo-comments.setup
{:keywords {:TODO {:icon " "} {:keywords {:TODO {:icon " "}
:WARN {:icon " " :alt [:WARNING :XXX :!!!]} :WARN {:icon " " :alt [:WARNING :XXX :!!!]}
:NOTE {:icon " " :alt [:INFO]} :NOTE {:icon " " :alt [:INFO]}
:FIX {:icon " " :alt [:FIXME :BUG :FIXIT :ISSUE :PHIX]} :FIX {:icon " " :alt [:FIXME :BUG :FIXIT :ISSUE :PHIX]}
:PERF {:icon " " :alt [:OPTIM :PERFORMANCE :OPTIMIZE]} :PERF {:icon " " :alt [:OPTIM :PERFORMANCE :OPTIMIZE]}
:HACK {:icon " "}}}) :HACK {:icon " "}}}))
[]
[(utils.plugin
:folke/todo-comments.nvim
{:lazy true
:event "VeryLazy"
:config setup})]

View file

@ -2,9 +2,8 @@
(m.al utils dots.utils) (m.al utils dots.utils)
(m.al a nfnl.core) (m.al a nfnl.core)
(fn setup [])
(fn setup1 [] (fn setup []
(local configs (require :nvim-treesitter.configs)) (local configs (require :nvim-treesitter.configs))
(configs.setup (configs.setup
{:ensure_installed ["rust" "fennel" "commonlisp" "vim" "regex" "lua" "bash" "markdown" "markdown_inline"] {:ensure_installed ["rust" "fennel" "commonlisp" "vim" "regex" "lua" "bash" "markdown" "markdown_inline"]

View file

@ -1,8 +1,9 @@
(import-macros m :macros) (import-macros m :macros)
(m.al utils dots.utils) (m.al utils dots.utils)
(m.al colors dots.colors) (m.al colors dots.colors)
(local trouble (require :trouble)) (m.al trouble trouble)
(fn setup []
(trouble.setup (trouble.setup
{:icons false {:icons false
:auto_preview true :auto_preview true
@ -24,5 +25,11 @@
(utils.highlight "TroubleSignError" {:bg "NONE" :fg colors.bright_red}) (utils.highlight "TroubleSignError" {:bg "NONE" :fg colors.bright_red})
(utils.highlight "TroubleSignWarning" {:bg "NONE" :fg colors.bright_yellow}) (utils.highlight "TroubleSignWarning" {:bg "NONE" :fg colors.bright_yellow})
(utils.highlight "TroubleSignInformation" {:bg "NONE" :fg colors.bright_aqua}) (utils.highlight "TroubleSignInformation" {:bg "NONE" :fg colors.bright_aqua})
(utils.highlight "TroubleSignHint" {:bg "NONE" :fg colors.bright_blue}) (utils.highlight "TroubleSignHint" {:bg "NONE" :fg colors.bright_blue}))
[]
[(utils.plugin
:folke/trouble.nvim
{:lazy true
:config setup
:cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]})]

View file

@ -1,5 +0,0 @@
(import-macros m :macros)
(m.al twilight twilight)
(twilight.setup)
[]

View file

@ -1,9 +1,8 @@
(import-macros m :macros)
(m.al utils dots.utils)
(fn setup []
;(set vim.g.vimtex_quickfix_enabled 0)
(set vim.g.vimtex_view_method "general") (set vim.g.vimtex_view_method "general")
;(set vim.g.vimtex_view_general_viewer "okular")
(set vim.g.vimtex_view_general_viewer "zathura") (set vim.g.vimtex_view_general_viewer "zathura")
(set vim.g.vimtex_view_general_options "--synctex-forward @line:1:@tex @pdf") (set vim.g.vimtex_view_general_options "--synctex-forward @line:1:@tex @pdf")
;(set vim.g.vimtex_view_general_options "--unique file:@pdf#src:@line@tex") ;(set vim.g.vimtex_view_general_options "--unique file:@pdf#src:@line@tex")
@ -24,7 +23,6 @@
(set vim.g.vimtex_syntax_custom_cmds (set vim.g.vimtex_syntax_custom_cmds
[{:name "scripture" :argstyle "ital"}]) [{:name "scripture" :argstyle "ital"}])
(set vim.g.vimtex_syntax_conceal {:accents 1 (set vim.g.vimtex_syntax_conceal {:accents 1
:cites 1 :cites 1
:fancy 1 :fancy 1
@ -35,8 +33,11 @@
:math_super_sub 1 :math_super_sub 1
:math_symbols 1 :math_symbols 1
:sections 0 :sections 0
:styles 0}) :styles 0}))
[] [(utils.plugin
:lervag/vimtex
{:ft ["latex" "tex"]
:config setup})]

View file

@ -1,8 +0,0 @@
(import-macros m :macros)
(m.al zen-mode zen-mode)
(zen-mode.setup
{:window {:options {:wrap true}}})
[]

View file

@ -34,7 +34,7 @@ ensure("Olical", "nfnl", "main")
-- require('nfnl')['compile-all-files']() -- require('nfnl')['compile-all-files']()
require("lua.init") require("main")
-- ensure("lewis6991", "impatient.nvim", "main") -- ensure("lewis6991", "impatient.nvim", "main")