diff options
| author | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-11-07 23:42:52 -0800 |
|---|---|---|
| committer | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-11-07 23:53:00 -0800 |
| commit | 5dc89fe9789701abbe4a73c2998d397a6d7d964c (patch) | |
| tree | cf43ae482b0c2bbfabd3370faf127a4e21a21086 /dot-config/nvim/plugin | |
| parent | 617c3b29dbf03322ef3ccb0cd9663532e94adb68 (diff) | |
replace lazyvim with custom config
Diffstat (limited to 'dot-config/nvim/plugin')
| -rw-r--r-- | dot-config/nvim/plugin/colorscheme.lua | 16 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/fzf.lua | 9 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/hardtime.lua | 6 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/lsp.lua | 26 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/lualine.lua | 22 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/notify.lua | 11 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/treesitter.lua | 15 | ||||
| -rw-r--r-- | dot-config/nvim/plugin/yazi.lua | 8 |
8 files changed, 113 insertions, 0 deletions
diff --git a/dot-config/nvim/plugin/colorscheme.lua b/dot-config/nvim/plugin/colorscheme.lua new file mode 100644 index 0000000..2539956 --- /dev/null +++ b/dot-config/nvim/plugin/colorscheme.lua @@ -0,0 +1,16 @@ +vim.pack.add({ + "https://github.com/sainnhe/sonokai", + "https://github.com/WTFox/jellybeans.nvim", +}) + +vim.g.sonokai_transparent_background = 2 +vim.g.sonokai_float_style = "bright" + +require("jellybeans").setup({ + transparent = true, + italics = false, + bold = false, + flat_ui = true, -- toggles "flat UI" for pickers +}) + +vim.cmd("colorscheme jellybeans") diff --git a/dot-config/nvim/plugin/fzf.lua b/dot-config/nvim/plugin/fzf.lua new file mode 100644 index 0000000..259d828 --- /dev/null +++ b/dot-config/nvim/plugin/fzf.lua @@ -0,0 +1,9 @@ +vim.pack.add({ + "https://github.com/ibhagwan/fzf-lua", +}) + +require("fzf-lua").setup() + +vim.keymap.set("n", "<leader><Space>", FzfLua.files) +vim.keymap.set("n", "<leader>/", FzfLua.live_grep) +vim.keymap.set("n", "<leader>fb", FzfLua.buffers) diff --git a/dot-config/nvim/plugin/hardtime.lua b/dot-config/nvim/plugin/hardtime.lua new file mode 100644 index 0000000..f956c86 --- /dev/null +++ b/dot-config/nvim/plugin/hardtime.lua @@ -0,0 +1,6 @@ +vim.pack.add({ + "https://github.com/m4xshen/hardtime.nvim", + "https://github.com/MunifTanjim/nui.nvim", +}) + +require("hardtime").setup() diff --git a/dot-config/nvim/plugin/lsp.lua b/dot-config/nvim/plugin/lsp.lua new file mode 100644 index 0000000..4b8a66b --- /dev/null +++ b/dot-config/nvim/plugin/lsp.lua @@ -0,0 +1,26 @@ +vim.pack.add({ + "https://github.com/neovim/nvim-lspconfig", + "https://github.com/mason-org/mason.nvim", + "https://github.com/stevearc/conform.nvim", +}) + +require("mason").setup() + +vim.lsp.enable({ + "expert", -- elixir + "lua_ls", -- lua +}) + +require("conform").setup({ + -- Formatters + formatters_by_ft = { + elixir = { "mix" }, + lua = { "stylua" }, + }, + + format_on_save = { + -- I recommend these options. See :help conform.format for details. + lsp_format = "fallback", + timeout_ms = 500, + }, +}) diff --git a/dot-config/nvim/plugin/lualine.lua b/dot-config/nvim/plugin/lualine.lua new file mode 100644 index 0000000..b605786 --- /dev/null +++ b/dot-config/nvim/plugin/lualine.lua @@ -0,0 +1,22 @@ +vim.pack.add({ + "https://github.com/nvim-lualine/lualine.nvim", +}) + +local wc = require("wordcount") + +require("lualine").setup({ + options = { + component_separators = "", + section_separators = "", + }, + sections = { + lualine_y = { + -- Add wordcount + { wc.wordcount, cond = wc.is_available }, + -- Existing conf + "progress", + }, + }, +}) + +vim.o.cmdheight = 0 -- Puts Lualine at very bottom diff --git a/dot-config/nvim/plugin/notify.lua b/dot-config/nvim/plugin/notify.lua new file mode 100644 index 0000000..75ceb47 --- /dev/null +++ b/dot-config/nvim/plugin/notify.lua @@ -0,0 +1,11 @@ +vim.pack.add({ + "https://github.com/rcarriga/nvim-notify", +}) + +require("notify").setup({ + background_colour = "#000000", + render = "wrapped-compact", + stages = "static", +}) + +vim.notify = require("notify") -- Use "notify" plugin as default notify function diff --git a/dot-config/nvim/plugin/treesitter.lua b/dot-config/nvim/plugin/treesitter.lua new file mode 100644 index 0000000..a1cc545 --- /dev/null +++ b/dot-config/nvim/plugin/treesitter.lua @@ -0,0 +1,15 @@ +vim.pack.add({ + "https://github.com/nvim-treesitter/nvim-treesitter", +}) + +require("nvim-treesitter").setup() +require("nvim-treesitter.configs").setup({ + ensure_installed = { + "eex", -- elixir + "elixir", + "heex", -- elixir + }, + highlight = { + enable = true, + }, +}) diff --git a/dot-config/nvim/plugin/yazi.lua b/dot-config/nvim/plugin/yazi.lua new file mode 100644 index 0000000..d34c359 --- /dev/null +++ b/dot-config/nvim/plugin/yazi.lua @@ -0,0 +1,8 @@ +vim.pack.add({ + "https://github.com/mikavilpas/yazi.nvim", + "https://github.com/nvim-lua/plenary.nvim", --dependency +}) + +vim.keymap.set("n", "<leader>e", function() + require("yazi").yazi() +end) |
