Compare commits
6 Commits
6a89ea1833
...
1edafd6d41
Author | SHA1 | Date | |
---|---|---|---|
doryan | 1edafd6d41 | ||
doryan | fe031e5bf5 | ||
doryan | 2606c2f6c7 | ||
doryan | 1ef25aed50 | ||
doryan | 8f0c29527d | ||
doryan | bbd28672d5 |
16
init.lua
16
init.lua
|
@ -1,11 +1,11 @@
|
||||||
local vanila_vim_autostart_commands = {
|
local vanila_vim_autostart_commands = {
|
||||||
"set number",
|
"set number",
|
||||||
"set clipboard=unnamedplus",
|
"set clipboard=unnamedplus",
|
||||||
"set nowrap"
|
"set nowrap"
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, cmd in pairs(vanila_vim_autostart_commands) do
|
for _, cmd in pairs(vanila_vim_autostart_commands) do
|
||||||
vim.cmd(cmd)
|
vim.cmd(cmd)
|
||||||
end
|
end
|
||||||
|
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
@ -21,8 +21,10 @@ require("config.plugins.comment")
|
||||||
require("config.plugins.dap")
|
require("config.plugins.dap")
|
||||||
require("config.plugins.gitsigns")
|
require("config.plugins.gitsigns")
|
||||||
require("ibl").setup()
|
require("ibl").setup()
|
||||||
|
require("config.plugins.lsp_diagnostic")
|
||||||
require("config.plugins.lualine")
|
require("config.plugins.lualine")
|
||||||
require("config.plugins.navic")
|
require("config.plugins.navic")
|
||||||
|
require("config.plugins.noice")
|
||||||
require("toggleterm").setup()
|
require("toggleterm").setup()
|
||||||
require("config.plugins.treesitter")
|
require("config.plugins.treesitter")
|
||||||
require("config.plugins.neotree")
|
require("config.plugins.neotree")
|
||||||
|
@ -30,4 +32,4 @@ require("config.plugins.nvimufo")
|
||||||
require("config.plugins.prettier")
|
require("config.plugins.prettier")
|
||||||
require("config.plugins.rustaceanvim")
|
require("config.plugins.rustaceanvim")
|
||||||
require("huez").setup({})
|
require("huez").setup({})
|
||||||
require("config.plugins.dropbar")
|
require("config.plugins.dropbar")
|
||||||
|
|
|
@ -15,9 +15,9 @@ require("Comment").setup({
|
||||||
---LHS of operator-pending mappings in NORMAL and VISUAL mode
|
---LHS of operator-pending mappings in NORMAL and VISUAL mode
|
||||||
opleader = {
|
opleader = {
|
||||||
---Line-comment keymap
|
---Line-comment keymap
|
||||||
line = 'gc',
|
line = '<leader>/',
|
||||||
---Block-comment keymap
|
---Block-comment keymap
|
||||||
block = 'gb',
|
block = '<leader>/',
|
||||||
},
|
},
|
||||||
---LHS of extra mappings
|
---LHS of extra mappings
|
||||||
extra = {
|
extra = {
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
vim.api.nvim_create_autocmd({ 'BufReadPost', 'BufNewFile', 'BufWritePost' }, {
|
require('dropbar').setup()
|
||||||
once = true,
|
vim.ui.select = require('dropbar.utils.menu').select
|
||||||
group = vim.api.nvim_create_augroup('DropBarSetup', {}),
|
vim.api.nvim_set_hl(0, 'DropBarMenuHoverEntry', { link = 'PmenuExtraSel' })
|
||||||
callback = function()
|
|
||||||
if vim.g.loaded_dropbar then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
require('dropbar').setup()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
require("noice").setup({
|
||||||
|
lsp = {
|
||||||
|
override = {
|
||||||
|
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||||
|
["vim.lsp.util.stylize_markdown"] = true,
|
||||||
|
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
|
||||||
|
},
|
||||||
|
},
|
||||||
|
presets = {
|
||||||
|
command_palette = true, -- position the cmdline and popupmenu together
|
||||||
|
long_message_to_split = true, -- long messages will be sent to a split
|
||||||
|
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||||
|
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||||
|
},
|
||||||
|
})
|
|
@ -1,5 +1,7 @@
|
||||||
local map = vim.keymap.set
|
local map = vim.keymap.set
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||||
|
|
||||||
map("i", "<C-h>", "<Left>", { desc = "move left" })
|
map("i", "<C-h>", "<Left>", { desc = "move left" })
|
||||||
|
|
|
@ -61,7 +61,6 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'Bekaboo/dropbar.nvim',
|
'Bekaboo/dropbar.nvim',
|
||||||
-- optional, but required for fuzzy finder support
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-telescope/telescope-fzf-native.nvim',
|
'nvim-telescope/telescope-fzf-native.nvim',
|
||||||
build = 'make'
|
build = 'make'
|
||||||
|
@ -73,6 +72,14 @@ return {
|
||||||
vim.keymap.set('n', '];', dropbar_api.select_next_context, { desc = 'Select next context' })
|
vim.keymap.set('n', '];', dropbar_api.select_next_context, { desc = 'Select next context' })
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"folke/noice.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
dependencies = {
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v2.x",
|
branch = "v2.x",
|
||||||
|
|
Loading…
Reference in New Issue