Add editorconfig-vim
This commit is contained in:
parent
0a5bba771f
commit
442a587137
1 changed files with 9 additions and 7 deletions
16
init.lua
16
init.lua
|
@ -54,18 +54,16 @@ local config = {
|
||||||
diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
|
diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
|
||||||
icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
|
icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
|
||||||
ui_notifications_enabled = true, -- disable notifications when toggling UI elements
|
ui_notifications_enabled = true, -- disable notifications when toggling UI elements
|
||||||
|
|
||||||
-- Copilot
|
-- Copilot
|
||||||
copilot_no_tab_map = true,
|
copilot_no_tab_map = true,
|
||||||
copilot_assume_mapped = true,
|
copilot_assume_mapped = true,
|
||||||
copilot_tab_fallback = "",
|
copilot_tab_fallback = "",
|
||||||
|
|
||||||
-- Taglist
|
-- Taglist
|
||||||
Tlist_Use_Right_Window = 1,
|
Tlist_Use_Right_Window = 1,
|
||||||
Tlist_GainFocus_On_ToggleOpen = 1,
|
Tlist_GainFocus_On_ToggleOpen = 1,
|
||||||
Tlist_Auto_Update = 1,
|
Tlist_Auto_Update = 1,
|
||||||
-- Tlist_Close_On_Select = 1,
|
-- Tlist_Close_On_Select = 1,
|
||||||
|
|
||||||
-- MarkdownPreview
|
-- MarkdownPreview
|
||||||
mkdp_auto_close = 0
|
mkdp_auto_close = 0
|
||||||
},
|
},
|
||||||
|
@ -166,7 +164,6 @@ local config = {
|
||||||
-- tables with the `name` key will be registered with which-key if it's installed
|
-- tables with the `name` key will be registered with which-key if it's installed
|
||||||
-- this is useful for naming menus
|
-- this is useful for naming menus
|
||||||
["<leader>b"] = { name = "Buffers" },
|
["<leader>b"] = { name = "Buffers" },
|
||||||
|
|
||||||
-- Trigger Alpha dashboard on close when no buffers are left
|
-- Trigger Alpha dashboard on close when no buffers are left
|
||||||
["<leader>c"] = {
|
["<leader>c"] = {
|
||||||
function()
|
function()
|
||||||
|
@ -176,7 +173,6 @@ local config = {
|
||||||
end,
|
end,
|
||||||
desc = "Close buffer",
|
desc = "Close buffer",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- quick save
|
-- quick save
|
||||||
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
||||||
|
|
||||||
|
@ -338,7 +334,7 @@ local config = {
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
config = function(plugin, opts)
|
config = function(plugin, opts)
|
||||||
require "plugins.configs.which-key"(plugin, opts)
|
require "plugins.configs.which-key" (plugin, opts)
|
||||||
-- Add bindings which show up as group name
|
-- Add bindings which show up as group name
|
||||||
local wk = require "which-key"
|
local wk = require "which-key"
|
||||||
wk.register({
|
wk.register({
|
||||||
|
@ -379,11 +375,17 @@ local config = {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Editorconfig
|
||||||
|
{
|
||||||
|
"editorconfig/editorconfig-vim",
|
||||||
|
event = "BufRead"
|
||||||
|
},
|
||||||
|
|
||||||
-- You can also add new plugins here as well:
|
-- You can also add new plugins here as well:
|
||||||
-- Add plugins, the lazy syntax
|
-- Add plugins, the lazy syntax
|
||||||
|
|
||||||
-- Plugins for other plugins
|
-- Plugins for other plugins
|
||||||
{
|
{
|
||||||
"tyru/open-browser.vim",
|
"tyru/open-browser.vim",
|
||||||
cmd = { "OPenBrowser", "OpenBrowserSearch", "OpenBrowserSmartSearch" }
|
cmd = { "OPenBrowser", "OpenBrowserSearch", "OpenBrowserSmartSearch" }
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue