Major change to use mini suit of plugins.
This commit is contained in:
@@ -1,53 +1,59 @@
|
||||
vim.pack.add({
|
||||
{ src = "https://github.com/ibhagwan/fzf-lua" },
|
||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
||||
{ src = "https://github.com/rebelot/kanagawa.nvim" },
|
||||
{ src = "https://github.com/tribela/transparent.nvim" },
|
||||
{ src = "https://github.com/nvim-lualine/lualine.nvim" }
|
||||
{ src = "https://github.com/nvim-mini/mini.nvim" },
|
||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
||||
{ src = "https://github.com/brenoprata10/nvim-highlight-colors" },
|
||||
{ src = 'https://github.com/vague-theme/vague.nvim' }
|
||||
})
|
||||
|
||||
vim.cmd(":colorscheme kanagawa")
|
||||
|
||||
require("tree-sitter-manager").setup({})
|
||||
local theme = require('lualine.themes.kanagawa')
|
||||
|
||||
for _, mode in pairs(theme) do
|
||||
if mode.b then mode.b.bg = '#16161D' end
|
||||
if mode.c then mode.c.bg = '#16161D' end
|
||||
if mode.x then mode.x.bg = '#16161D' end
|
||||
if mode.y then mode.y.bg = '#16161D' end
|
||||
if mode.z then mode.z.bg = '#16161D' end
|
||||
end
|
||||
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
theme = theme,
|
||||
component_separators = '',
|
||||
section_separators = '',
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'diagnostics'},
|
||||
lualine_y = {},
|
||||
lualine_z = {'lsp_status', 'location'},
|
||||
},
|
||||
require('vague').setup({ transparent = true })
|
||||
require("tree-sitter-manager").setup()
|
||||
require('nvim-highlight-colors').setup()
|
||||
-- Mini setups
|
||||
require("mini.extra").setup({})
|
||||
require("mini.pairs").setup({})
|
||||
require("mini.statusline").setup({})
|
||||
require('mini.basics').setup({
|
||||
options = { basic = true, extra_ui = true, win_borders = 'rounded', },
|
||||
mappings = { basic = true },
|
||||
autocommands = { basic = true },
|
||||
})
|
||||
require('mini.completion').setup({ lsp_completion = { auto_setup = true }, })
|
||||
require("mini.pick").setup({
|
||||
window = { config = function()
|
||||
local height = math.floor(0.50 * vim.o.lines)
|
||||
local width = math.floor(0.50 * vim.o.columns)
|
||||
return {
|
||||
anchor = 'NW', height = height, width = width,
|
||||
row = math.floor(0.5 * (vim.o.lines - height)),
|
||||
col = math.floor(0.5 * (vim.o.columns - width)),
|
||||
}
|
||||
end }
|
||||
})
|
||||
|
||||
require("fzf-lua").setup()
|
||||
map("n", "<leader>f", ":lua FzfLua.files()<CR>")
|
||||
map("n", "<leader>o", ":lua FzfLua.buffers()<CR>")
|
||||
map("n", "<leader>h", ":lua FzfLua.help_tags()<CR>")
|
||||
map("n", "<leader>d", ":lua FzfLua.diagnostics_document()<CR>")
|
||||
map("n", "<leader>a", ":lua FzfLua.lsp_code_actions()<CR>")
|
||||
map("n", "<leader>ss", ":lua FzfLua.grep_project()<CR>")
|
||||
map("n", "<leader>sf", ":lua FzfLua.grep_curbuf()<CR>")
|
||||
map("n", "<leader>sw", ":lua FzfLua.grep_cword()<CR>")
|
||||
vim.cmd(":HighlightColors Off")
|
||||
vim.cmd(":colorscheme vague")
|
||||
|
||||
-- Lsp specific, uses nvim-lspconfigs with the below
|
||||
vim.lsp.enable({ "gopls", "ols" })
|
||||
map("n", "L", ":lua vim.diagnostic.open_float()<CR>")
|
||||
map("n", "gd", ":lua vim.lsp.buf.definition()<CR>")
|
||||
map("n", "<leader>r", ":lua vim.lsp.buf.rename()<CR>")
|
||||
map("n", "<leader>a", ":lua vim.lsp.buf.code_action()<CR>")
|
||||
-- Mini Keybinds
|
||||
map("n", "<leader>f", ":lua MiniPick.builtin.files()<CR>")
|
||||
map("n", "<leader>o", ":lua MiniPick.builtin.buffers()<CR>")
|
||||
map("n", "<leader>h", ":lua MiniPick.builtin.help()<CR>")
|
||||
map("n", "<leader>d", ":lua MiniExtra.pickers.diagnostic()<CR>")
|
||||
map("n", "<leader>ss", ":lua MiniPick.builtin.grep_live()<CR>")
|
||||
map("n", "<leader>tc", ":HighlightColors Toggle<CR>")
|
||||
|
||||
-- Highlight Overrides
|
||||
local bg = "#1b1b1b"
|
||||
local border = "#96A6C8"
|
||||
vim.api.nvim_set_hl(0, "MiniPickBorder", { bg = bg, fg = border })
|
||||
vim.api.nvim_set_hl(0, "MiniPickNormal", { bg = bg })
|
||||
-- Completion popup background
|
||||
vim.api.nvim_set_hl(0, "Pmenu", { bg = bg })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = bg })
|
||||
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = bg, fg = border })
|
||||
|
||||
Reference in New Issue
Block a user