diff --git a/config.lua b/config.lua index 1acae1d..cf5f3db 100644 --- a/config.lua +++ b/config.lua @@ -8,6 +8,14 @@ require("user.c") require("user.python") require("user.latex") +lvim.builtin.telescope.on_config_done = function(telescope) + pcall(telescope.load_extension, "fzy_native") + pcall(telescope.load_extension, "media_files") + pcall(telescope.load_extension, "frecency") + pcall(telescope.load_extension, "neoclip") + -- any other extensions loading +end + lvim.transparent_window = true lvim.colorscheme = "rose-pine-moon" vim.opt.rnu = true -- relative numbers @@ -15,22 +23,66 @@ vim.opt.cb = "unnamedplus" vim.opt.nf = "alpha,octal,hex,bin,unsigned" vim.opt.si = true vim.opt.backup = false -vim.opt.cc = "+1" -vim.opt.textwidth = 80 +vim.opt.cc = "80" +vim.opt.textwidth = 0 +vim.opt.wrap = true +vim.opt.linebreak = true +vim.opt.breakindent = true lvim.builtin.nvimtree.active = false -- NOTE: using neo-tree lvim.builtin.indentlines.active = true +lvim.builtin.alpha.dashboard.section.header.val = { +[[ ;,_ , ]], +[[ _uP~"b d"u, ]], +[[ dP' "b ,d" "o ]], +[[ d" , `b d"' "b ]], +[[ l] [ " `l, d" lb ]], +[[ Ol ? " "b`"=uoqo,_ "l ]], +[[ ,dBb "b "b, `"~~TObup,_ ]], +[[ ,d" (db.`" "" "tbc,_ `~"Yuu,_ ]], +[[ .d" l`T' '= ~ `""Yu, ]], +[[ ,dO` gP, `u, b,_ "b7 ]], +[[ d?' ,d" l, `"b,_ `~b "1 ]], +[[ ,8i' dl `l ,ggQOV",dbgq,._" `l lb ]], +[[ .df' (O, " ,ggQY"~ , @@@@@d"bd~ `b "1 ]], +[[.df' `" -=@QgpOY"" (b @@@@P db `Lp"b, ]], +[[.d( _ "ko "=d_,Q` ,_ " "b, ]], +[[Ql . `"qo,._ "tQo,_`""bo ;tb, `"b, ]], +[[qQ |L ~"QQQgggc,_.,dObc,opooO `"~~";. __,7, ]], +[[qp t\io,_ `~"TOOggQV"""" _,dg,_ =PIQHib. ]], +[[`qp `Q["tQQQo,_ ,pl{QOP"' 7AFR` ]], +[[ ` `tb '""tQQQg,_ p" "b ` .;-.`Vl' ]], +[[ "Yb `"tQOOo,__ _,edb ` .__ /`/'| |b;=;.__ ]], +[[ `"tQQQOOOOP""`"\QV;qQObob"`-._`\_~~-._ ]], +[[ """" ._ / | |oP"\_ ~\ ~\_~\ ]], +[[ `~"\ic,qggddOOP"| | ~\ `\~-._ ]], +[[ ,qP`"""|" | `\ `; `\ `\ ]], +[[ _ _,p" | | `\`; | | ]], +[[ "boo,._dP" `\_ `\ `\| `\ ; ]], +[[ `"7tY~' `\ `\ `|_ | ]], +[[ `~\ | ]], +} vim.o.timeoutlen = 250 vim.opt.ts = 2 -vim.opt.sw = 2 +vim.opt.sw = 0 vim.opt.et = false lvim.keys.normal_mode[""] = ":NeoTreeFocusToggle" lvim.keys.normal_mode[""] = ":BufferLineCyclePrev" lvim.keys.normal_mode[""] = ":BufferLineCycleNext" +lvim.keys.normal_mode[""] = ":set spell!" +lvim.keys.normal_mode[""] = ":Telescope neoclip" +lvim.keys.normal_mode["j"] = "gj" +lvim.keys.normal_mode["k"] = "gk" lvim.builtin.which_key.mappings["r"] = { ":RnvimrToggle", "Rnvimr" } +lvim.builtin.which_key.mappings["e"] = { + "(leap-forward-to)", "Leap Forward" +} +lvim.builtin.which_key.mappings["E"] = { + "(leap-backward-to)", "Leap Backward" +} lvim.format_on_save = false vim.diagnostic.config({ virtual_text = true }) @@ -38,38 +90,22 @@ vim.diagnostic.config({ virtual_text = true }) lvim.builtin.treesitter.highlight.enable = true -- auto install treesitter parsers -lvim.builtin.treesitter.ensure_installed = { "cpp", "c", "python" } +lvim.builtin.treesitter.ensure_installed = { "cpp", "c", "python", "latex" } -- Additional Plugins table.insert(lvim.plugins, { + --colorschemes + "lunarvim/colorschemes", "kvrohit/mellow.nvim", - "embark-theme/vim", - "nyngwang/nvimgelion", - "maxmx03/FluoroMachine.nvim", - "sonjiku/yawnc.nvim", - "xero/miasma.nvim", - "lmburns/kimbox", "p00f/clangd_extensions.nvim", "catppuccin/nvim", - "marko-cerovac/material.nvim", - "bluz71/vim-nightfly-colors", - "sainnhe/sonokai", - "nyoom-engineering/oxocarbon.nvim", "rose-pine/neovim", "kyazdani42/blue-moon", - "bkegley/gloombuddy", - "Th3Whit3Wolf/space-nvim", - "yonlu/omni.vim", - "ray-x/aurora", - "ray-x/starry.nvim", - "AlexvZyl/nordic.nvim", - "shaunsingh/moonlight.nvim", - "sainnhe/gruvbox-material", "neanias/everforest-nvim", "kdheepak/monochrome.nvim", - "mcchrish/zenbones.nvim", "FrenzyExists/aquarium-vim", "rebelot/kanagawa.nvim", + --functional { "nvim-neo-tree/neo-tree.nvim", branch = "v2.x", @@ -112,9 +148,7 @@ table.insert(lvim.plugins, { require("leap").add_default_mappings() end, }, - { - "mrjones2014/nvim-ts-rainbow", - }, + "mrjones2014/nvim-ts-rainbow", { "nacro90/numb.nvim", event = "BufRead", @@ -140,9 +174,89 @@ table.insert(lvim.plugins, { "nvim-neotest/neotest", "nvim-neotest/neotest-python", "lervag/vimtex", - -- "kdheepak/cmp-latex-symbols", -- caused an issue with cmp "KeitaNakamura/tex-conceal.vim", - "SirVer/ultisnips", + { + "npxbr/glow.nvim", + ft = {"markdown"} + }, + { + "kevinhwang91/nvim-bqf", + event = { "BufRead", "BufNew" }, + config = function() + require("bqf").setup({ + auto_enable = true, + preview = { + win_height = 12, + win_vheight = 12, + delay_syntax = 80, + border_chars = { "┃", "┃", "━", "━", "┏", "┓", "┗", "┛", "█" }, + }, + func_map = { + vsplit = "", + ptogglemode = "z,", + stoggleup = "", + }, + filter = { + fzf = { + action_for = { ["ctrl-s"] = "split" }, + extra_opts = { "--bind", "ctrl-o:toggle-all", "--prompt", "> " }, + }, + }, + }) + end, + }, + { + "windwp/nvim-spectre", + event = "BufRead", + config = function() + require("spectre").setup() + end, + }, + { + "tpope/vim-surround", + + -- make sure to change the value of `timeoutlen` if it's not triggering correctly, see https://github.com/tpope/vim-surround/issues/117 + -- setup = function() + -- vim.o.timeoutlen = 500 + -- end + }, + { + "norcalli/nvim-colorizer.lua", + config = function() + require("colorizer").setup({ "css", "scss", "html", "javascript" }, { + RGB = true, -- #RGB hex codes + RRGGBB = true, -- #RRGGBB hex codes + RRGGBBAA = true, -- #RRGGBBAA hex codes + rgb_fn = true, -- CSS rgb() and rgba() functions + hsl_fn = true, -- CSS hsl() and hsla() functions + css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB + css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn + }) + end, + }, + { + "nvim-telescope/telescope-fzy-native.nvim", + build = "make", + event = "BufRead", + }, + "nvim-telescope/telescope-media-files.nvim", + { + "AckslD/nvim-neoclip.lua", + requires = { + {'kkharji/sqlite.lua', module = 'sqlite'}, + {'nvim-telescope/telescope.nvim'}, + }, + config = function() + require('neoclip').setup() + end, + }, + { + "nvim-telescope/telescope-frecency.nvim", + config = function() + -- require("telescope").load_extension "frecency" + end, + dependencies = { "kkharji/sqlite.lua" }, +} }) vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "clangd" }) diff --git a/init.vim b/init.vim index 33018d5..e69de29 100644 --- a/init.vim +++ b/init.vim @@ -1 +0,0 @@ -" testing my mirrors diff --git a/lua/user/latex.lua b/lua/user/latex.lua index e06aa29..63c3f72 100644 --- a/lua/user/latex.lua +++ b/lua/user/latex.lua @@ -42,13 +42,13 @@ vim.g.vimtex_view_method = "zathura" vim.g.vimtex_quickfix_enabled = 0 -- Setup cmp. --- vim.api.nvim_create_autocmd("FileType", { --- group = vim.api.nvim_create_augroup("LaTeXGroup", { clear = true }), --- pattern = "tex", --- callback = function() --- require("cmp") --- end, --- }) +vim.api.nvim_create_autocmd("FileType", { + group = vim.api.nvim_create_augroup("LaTeXGroup", { clear = true }), + pattern = "tex", + callback = function() + require("cmp") + end, +}) -- Mappings lvim.builtin.which_key.mappings["C"] = { diff --git a/lua/user/cmp.lua b/lua/user/lua/cmp.lua similarity index 100% rename from lua/user/cmp.lua rename to lua/user/lua/cmp.lua