Merge branch 'dev' into mercury
nvim: fix lua LSP server name add mini.indentscope
This commit is contained in:
commit
b8ef05167f
@ -1,21 +0,0 @@
|
||||
-- Author : swytch
|
||||
-- Created : Sunday Jan. 29, 2023 00:20:31 CET
|
||||
-- License : GPLv3
|
||||
-- Description : Mini.comment plugin config file
|
||||
|
||||
return {
|
||||
"echasnovski/mini.comment",
|
||||
version = "*",
|
||||
opts = {
|
||||
mappings = {
|
||||
comment = "<leader>c",
|
||||
|
||||
comment_line = "<leader><Space>",
|
||||
|
||||
text_object = "gc",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("mini.comment").setup(opts)
|
||||
end,
|
||||
}
|
44
.config/nvim/lua/plugin/editor.lua
Normal file
44
.config/nvim/lua/plugin/editor.lua
Normal file
@ -0,0 +1,44 @@
|
||||
-- Author : swytch
|
||||
-- Created : Sunday Jan. 29, 2023 00:20:31 CET
|
||||
-- License : GPLv3
|
||||
-- Description : Mini.comment plugin config file
|
||||
|
||||
return {
|
||||
{
|
||||
"echasnovski/mini.comment",
|
||||
version = "*",
|
||||
opts = {
|
||||
mappings = {
|
||||
comment = "<leader>c",
|
||||
|
||||
comment_line = "<leader><Space>",
|
||||
|
||||
text_object = "gc",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("mini.comment").setup(opts)
|
||||
end
|
||||
},
|
||||
{
|
||||
"echasnovski/mini.pairs",
|
||||
version = "*",
|
||||
config = function() require("mini.pairs").setup() end,
|
||||
},
|
||||
{
|
||||
"echasnovski/mini.indentscope",
|
||||
version = "*",
|
||||
opts = function()
|
||||
local plugin = require("mini.indentscope")
|
||||
return {
|
||||
draw = {
|
||||
animation = plugin.gen_animation.none()
|
||||
}
|
||||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
require("mini.indentscope").setup(opts)
|
||||
end,
|
||||
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@ _G.lsp_root_dir = vim.fn.stdpath("data") .. "/mason/bin"
|
||||
local servers = {
|
||||
"clangd",
|
||||
"rust_analyzer",
|
||||
"sumneko_lua",
|
||||
"lua_ls",
|
||||
"texlab",
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user