mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
add: update config neovide
This commit is contained in:
parent
d1e7d99d27
commit
f00aeb3add
7 changed files with 250 additions and 253 deletions
6
.stylua.toml
Normal file
6
.stylua.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
column_width = 120
|
||||
line_endings = "Unix"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
quote_style = "AutoPreferDouble"
|
||||
no_call_parentheses = true
|
6
init.lua
6
init.lua
|
@ -6,9 +6,9 @@ if vim.g.vscode then
|
|||
VSCodeNotify = vim.fn.VSCodeNotify
|
||||
VSCodeCall = vim.fn.VSCodeCall
|
||||
|
||||
require("vscode.functions")
|
||||
require("vscode.mappings")
|
||||
require "vscode.functions"
|
||||
require "vscode.mappings"
|
||||
else
|
||||
-- config neovim
|
||||
require("core")
|
||||
require "core"
|
||||
end
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "0b8165cf95806bc4bb8f745bb0c92021b2ed4b98" },
|
||||
"nvim-material-icon": { "branch": "main", "commit": "7a8893417c6947925d00946d16b81b56574796a9" },
|
||||
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
|
@ -39,7 +39,7 @@
|
|||
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "73fb37ed77b18ac357ca8e6e35835a8db6602332" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5f9bf4b1ead7707e4e74e5319ee56bdc81fb73db" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "cb57b07803476ee902c89412aeff219a9a58be13" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "6f38e4231c34497259121a007c61a0fd2f16403e" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cbab9ad88036915beebd13b47e100743ff2ed2d5" },
|
||||
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
|
||||
|
|
|
@ -6,8 +6,7 @@ if vim.g.neovide then
|
|||
vim.keymap.set("n", "<c-v>", '"+P', opts) -- Paste normal mode
|
||||
vim.keymap.set("v", "<c-v>", '"+P', opts) -- Paste visual mode
|
||||
vim.keymap.set("x", "<c-v>", '"+P', opts) -- Paste visual mode
|
||||
vim.keymap.set("c", "<c-v>", "<C-R>+", opts) -- Paste command mode
|
||||
vim.keymap.set("c", "<c-v>", '"+P', opts) -- Paste command mode
|
||||
vim.keymap.set("c", "<sc-v>", "<C-R>+", { noremap = true }) -- Paste command mode
|
||||
vim.keymap.set("i", "<c-v>", '<ESC>l"+Pli', opts) -- Paste insert mode
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
|
@ -23,14 +22,6 @@ if vim.g.neovide then
|
|||
)
|
||||
vim.keymap.set("v", "<c-/>", "<esc><cmd>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<cr>", opts)
|
||||
|
||||
-- vim.keymap.set("n", "<C-s>", ":w<CR>", opts) -- Save
|
||||
-- vim.keymap.set("v", "<C-c>", '"+y', opts) -- Copy
|
||||
-- vim.keymap.set("n", "<C-v>", '"+P', opts) -- Paste normal mode
|
||||
-- vim.keymap.set("v", "<C-v>", '"+P', opts) -- Paste visual mode
|
||||
-- vim.keymap.set("c", "<C-v>", "<C-R>+", opts) -- Paste command mode
|
||||
-- vim.keymap.set("i", "<C-v>", '<ESC>l"+Pli', opts) -- Paste insert mode
|
||||
-- vim.keymap.set("t", "<C-v>", '<C-\\><C-n>"+Pi', opts)
|
||||
|
||||
vim.o.guifont = "Hasklug_Nerd_Font:h15"
|
||||
vim.g.neovide_padding_top = 0
|
||||
vim.g.neovide_padding_bottom = 1
|
||||
|
|
|
@ -5,7 +5,7 @@ return {
|
|||
lazy = true,
|
||||
event = "VimEnter",
|
||||
config = function()
|
||||
require("user.alpha")
|
||||
require "user.alpha"
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ return {
|
|||
dependencies = "neovim/nvim-lspconfig",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("user.breadcrumb")
|
||||
require("user.winbar")
|
||||
require "user.breadcrumb"
|
||||
require "user.winbar"
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ return {
|
|||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
bufferline.setup({
|
||||
bufferline.setup {
|
||||
options = {
|
||||
color_icons = true,
|
||||
numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string,
|
||||
|
@ -163,6 +163,6 @@ return {
|
|||
bg = { attribute = "bg", highlight = "Normal" },
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue