Nvim Luaification
This commit is contained in:
89
.config/nvim/lua/plugins/rest.lua
Normal file
89
.config/nvim/lua/plugins/rest.lua
Normal file
@@ -0,0 +1,89 @@
|
||||
return {
|
||||
"mattn/webapi-vim",
|
||||
"scrooloose/syntastic",
|
||||
"sheerun/vim-polyglot",
|
||||
"simnalamburt/vim-mundo",
|
||||
"elkowar/yuck.vim",
|
||||
{"glacambre/firenvim",
|
||||
lazy = not vim.g.started_by_firenvim,
|
||||
build = function()
|
||||
vim.fn["firenvim#install"](0)
|
||||
end
|
||||
},
|
||||
--'honza/vim-snippets',
|
||||
--'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||
'vim-scripts/indentLine.vim',
|
||||
'rhysd/git-messenger.vim',
|
||||
'junegunn/vim-easy-align',
|
||||
"preservim/nerdcommenter",
|
||||
"mg979/vim-visual-multi",
|
||||
"airblade/vim-gitgutter",
|
||||
--'vim-airline/vim-airline'
|
||||
--'vim-airline/vim-airline-themes'
|
||||
{'ctrlpvim/ctrlp.vim'},
|
||||
--'godlygeek/tabular'
|
||||
--'easymotion/vim-easymotion'
|
||||
--'nathanaelkane/vim-indent-guides'
|
||||
--'xuyuanp/nerdtree-git-plugin'
|
||||
--'bronson/vim-trailing-whitespace'
|
||||
--'tpope/vim-dadbod'
|
||||
--'tpope/vim-eunuch'
|
||||
--'tpope/vim-speeddating'
|
||||
--'tpope/vim-repeat'
|
||||
--'tpope/vim-rhubarb'
|
||||
--'tpope/vim-unimpaired'
|
||||
--'tpope/vim-abolish'
|
||||
--'tpope/vim-obsession'
|
||||
--'tpope/vim-fugitive'
|
||||
--'tpope/vim-surround'
|
||||
{
|
||||
'Exafunction/codeium.vim',
|
||||
event = 'BufEnter',
|
||||
config = function ()
|
||||
-- Change '<C-g>' here to any keycode you like.
|
||||
vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
|
||||
vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true, silent = true })
|
||||
vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true, silent = true })
|
||||
vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true, silent = true })
|
||||
end
|
||||
},
|
||||
--'lambdalisue/suda.vim'
|
||||
{'tree-sitter/tree-sitter-c-sharp'},
|
||||
{'nvim-treesitter/nvim-treesitter', build = ':TSUpdate'},
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
|
||||
'kosayoda/nvim-lightbulb',
|
||||
--'antoinemadec/FixCursorHold.nvim'
|
||||
'mhartington/formatter.nvim',
|
||||
'NvChad/nvim-colorizer.lua',
|
||||
|
||||
--{'ms-jpq/chadtree', branch='chad', build='python3 -m chadtree deps'},
|
||||
{'ms-jpq/coq_nvim', branch='coq'},
|
||||
--" 9000+ Snippets
|
||||
{'ms-jpq/coq.artifacts', branch='artifacts'},
|
||||
{'ms-jpq/coq.thirdparty', branch='3p'},
|
||||
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
'projekt0n/circles.nvim',
|
||||
|
||||
'nvim-neotest/nvim-nio',
|
||||
|
||||
--'uga-rosa/translate.nvim'
|
||||
--'mechatroner/rainbow_csv'
|
||||
--'christoomey/vim-system-copy'
|
||||
--'eandrju/cellular-automaton.nvim'
|
||||
--"neovim/nvim-lspconfig",
|
||||
--"'ranjithshegde/ccls.nvim'
|
||||
"mfussenegger/nvim-dap",
|
||||
"rcarriga/nvim-dap-ui",
|
||||
"folke/neodev.nvim",
|
||||
"folke/which-key.nvim",
|
||||
{ "folke/neoconf.nvim", cmd = "Neoconf" },
|
||||
{"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
{ "folke/neodev.nvim", opts = {} },
|
||||
}, },
|
||||
}
|
||||
150
.config/nvim/lua/plugins/ux.lua
Normal file
150
.config/nvim/lua/plugins/ux.lua
Normal file
@@ -0,0 +1,150 @@
|
||||
return {
|
||||
{"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
"3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
}
|
||||
},
|
||||
{"catppuccin/nvim", lazy=true, name="catppuccin"},
|
||||
{
|
||||
"folke/twilight.nvim",
|
||||
opts = {
|
||||
dimming = {
|
||||
alpha = 0.25, -- amount of dimming
|
||||
-- we try to get the foreground from the highlight groups or fallback color
|
||||
color = { "Normal", "#ffffff" },
|
||||
term_bg = "#000000", -- if guibg=NONE, this will be used to calculate text color
|
||||
inactive = false, -- when true, other windows will be fully dimmed (unless they contain the same buffer)
|
||||
},
|
||||
context = 10, -- amount of lines we will try to show around the current line
|
||||
treesitter = true, -- use treesitter when available for the filetype
|
||||
-- treesitter is used to automatically expand the visible text,
|
||||
-- but you can further control the types of nodes that should always be fully expanded
|
||||
expand = { -- for treesitter, we we always try to expand to the top-most ancestor with these types
|
||||
"function",
|
||||
"method",
|
||||
"table",
|
||||
"if_statement",
|
||||
},
|
||||
exclude = {}, -- exclude these filetypes
|
||||
}
|
||||
},
|
||||
{"folke/zen-mode.nvim", opts={
|
||||
window = {
|
||||
backdrop = 0.95, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
|
||||
-- height and width can be:
|
||||
-- * an absolute number of cells when > 1
|
||||
-- * a percentage of the width / height of the editor when <= 1
|
||||
-- * a function that returns the width or the height
|
||||
width = 120, -- width of the Zen window
|
||||
height = 1, -- height of the Zen window
|
||||
-- by default, no options are changed for the Zen window
|
||||
-- uncomment any of the options below, or add other vim.wo options you want to apply
|
||||
options = {
|
||||
-- signcolumn = "no", -- disable signcolumn
|
||||
-- number = false, -- disable number column
|
||||
-- relativenumber = false, -- disable relative numbers
|
||||
-- cursorline = false, -- disable cursorline
|
||||
-- cursorcolumn = false, -- disable cursor column
|
||||
-- foldcolumn = "0", -- disable fold column
|
||||
-- list = false, -- disable whitespace characters
|
||||
},
|
||||
},
|
||||
plugins = {
|
||||
-- disable some global vim options (vim.o...)
|
||||
-- comment the lines to not apply the options
|
||||
options = {
|
||||
enabled = true,
|
||||
ruler = false, -- disables the ruler text in the cmd line area
|
||||
showcmd = false, -- disables the command in the last line of the screen
|
||||
-- you may turn on/off statusline in zen mode by setting 'laststatus'
|
||||
-- statusline will be shown only if 'laststatus' == 3
|
||||
laststatus = 0, -- turn off the statusline in zen mode
|
||||
},
|
||||
twilight = { enabled = true }, -- enable to start Twilight when zen mode opens
|
||||
gitsigns = { enabled = false }, -- disables git signs
|
||||
tmux = { enabled = false }, -- disables the tmux statusline
|
||||
-- this will change the font size on kitty when in zen mode
|
||||
-- to make this work, you need to set the following kitty options:
|
||||
-- - allow_remote_control socket-only
|
||||
-- - listen_on unix:/tmp/kitty
|
||||
kitty = {
|
||||
enabled = true,
|
||||
font = "+4", -- font size increment
|
||||
},
|
||||
-- this will change the font size on alacritty when in zen mode
|
||||
-- requires Alacritty Version 0.10.0 or higher
|
||||
-- uses `alacritty msg` subcommand to change font size
|
||||
alacritty = {
|
||||
enabled = false,
|
||||
font = "14", -- font size
|
||||
},
|
||||
-- this will change the font size on wezterm when in zen mode
|
||||
-- See alse also the Plugins/Wezterm section in this projects README
|
||||
wezterm = {
|
||||
enabled = true,
|
||||
-- can be either an absolute font size or the number of incremental steps
|
||||
font = "+4", -- (10% increase per step)
|
||||
},
|
||||
},
|
||||
}},
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle Pin" },
|
||||
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete Non-Pinned Buffers" },
|
||||
{ "<leader>br", "<Cmd>BufferLineCloseRight<CR>", desc = "Delete Buffers to the Right" },
|
||||
{ "<leader>bl", "<Cmd>BufferLineCloseLeft<CR>", desc = "Delete Buffers to the Left" },
|
||||
{ "<S-h>", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev Buffer" },
|
||||
{ "<S-l>", "<cmd>BufferLineCycleNext<cr>", desc = "Next Buffer" },
|
||||
{ "[b", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev Buffer" },
|
||||
{ "]b", "<cmd>BufferLineCycleNext<cr>", desc = "Next Buffer" },
|
||||
{ "[B", "<cmd>BufferLineMovePrev<cr>", desc = "Move buffer prev" },
|
||||
{ "]B", "<cmd>BufferLineMoveNext<cr>", desc = "Move buffer next" },
|
||||
},
|
||||
opts = {
|
||||
options = {
|
||||
-- stylua: ignore
|
||||
-- close_command = function(n) Snacks.bufdelete(n) end,
|
||||
-- stylua: ignore
|
||||
-- right_mouse_command = function(n) Snacks.bufdelete(n) end,
|
||||
diagnostics = "nvim_lsp",
|
||||
always_show_bufferline = false,
|
||||
-- diagnostics_indicator = function(_, _, diag)
|
||||
-- local icons = LazyVim.config.icons.diagnostics
|
||||
-- local ret = (diag.error and icons.Error .. diag.error .. " " or "")
|
||||
-- .. (diag.warning and icons.Warn .. diag.warning or "")
|
||||
-- return vim.trim(ret)
|
||||
-- end,
|
||||
offsets = {
|
||||
{
|
||||
filetype = "neo-tree",
|
||||
text = "Neo-tree",
|
||||
highlight = "Directory",
|
||||
text_align = "left",
|
||||
},
|
||||
},
|
||||
-- ---@param opts bufferline.IconFetcherOpts
|
||||
-- get_element_icon = function(opts)
|
||||
-- return LazyVim.config.icons.ft[opts.filetype]
|
||||
-- end,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("bufferline").setup(opts)
|
||||
-- Fix bufferline when restoring a session
|
||||
vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
|
||||
callback = function()
|
||||
vim.schedule(function()
|
||||
pcall(nvim_bufferline)
|
||||
end)
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{"rhysd/committia.vim"},
|
||||
}
|
||||
Reference in New Issue
Block a user