feat: Fold #region #endregion
This commit is contained in:
parent
7cdf1bc709
commit
4f02804419
2 changed files with 15 additions and 9 deletions
|
@ -27,4 +27,7 @@ o.fillchars:append("eob: ")
|
||||||
g.mapleader = " "
|
g.mapleader = " "
|
||||||
g.guifont = { "Sarasa UI J", ":h16" }
|
g.guifont = { "Sarasa UI J", ":h16" }
|
||||||
|
|
||||||
|
o.foldmethod = "marker"
|
||||||
|
o.foldmarker = { "#region" , "#endregion" }
|
||||||
|
|
||||||
require("null.remap")
|
require("null.remap")
|
||||||
|
|
|
@ -72,6 +72,10 @@ return {
|
||||||
"lopi-py/luau-lsp.nvim",
|
"lopi-py/luau-lsp.nvim",
|
||||||
branch = "nvim-011",
|
branch = "nvim-011",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"mason-org/mason.nvim",
|
||||||
|
},
|
||||||
opts = {
|
opts = {
|
||||||
platform = {
|
platform = {
|
||||||
type = "roblox",
|
type = "roblox",
|
||||||
|
@ -86,10 +90,6 @@ return {
|
||||||
sourcemap_file = "sourcemap.json",
|
sourcemap_file = "sourcemap.json",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"mason-org/mason.nvim",
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("luau-lsp").setup(opts)
|
require("luau-lsp").setup(opts)
|
||||||
end,
|
end,
|
||||||
|
@ -145,6 +145,8 @@ return {
|
||||||
opts.capabilities or {}
|
opts.capabilities or {}
|
||||||
)
|
)
|
||||||
-- NOTE: If the LSP is installed through Mason, vim.lsp.enable(...) is not needed since they're enabled automatically.
|
-- NOTE: If the LSP is installed through Mason, vim.lsp.enable(...) is not needed since they're enabled automatically.
|
||||||
|
|
||||||
|
--#region Python
|
||||||
-- FIXME: Re enable once ruff is able to type check
|
-- FIXME: Re enable once ruff is able to type check
|
||||||
-- vim.lsp.config["ruff_lsp"] = {
|
-- vim.lsp.config["ruff_lsp"] = {
|
||||||
-- capabilities = capabilities,
|
-- capabilities = capabilities,
|
||||||
|
@ -152,10 +154,8 @@ return {
|
||||||
vim.lsp.config["basedpyright"] = {
|
vim.lsp.config["basedpyright"] = {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
-- FIXME: Causing memleak, probably not compatible with Oil / neotree
|
--#endregion
|
||||||
-- vim.lsp.config["kotlin_language_server"] = {
|
--#region Lua(U)
|
||||||
-- capabilities = capabilities,
|
|
||||||
-- }
|
|
||||||
vim.lsp.config["emmylua_ls"] = {
|
vim.lsp.config["emmylua_ls"] = {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
root_markers = {
|
root_markers = {
|
||||||
|
@ -191,6 +191,8 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
--#endregion
|
||||||
|
--#region Rust
|
||||||
vim.lsp.config["rust_analyzer"] = {
|
vim.lsp.config["rust_analyzer"] = {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -208,8 +210,9 @@ return {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
--#endregion
|
||||||
|
|
||||||
--#region custom lsp (not handled by mason)
|
--#region Custom LSP (not handled by mason)
|
||||||
-- REF: https://github.com/Kotlin/kotlin-lsp/blob/main/scripts/neovim.md
|
-- REF: https://github.com/Kotlin/kotlin-lsp/blob/main/scripts/neovim.md
|
||||||
vim.lsp.config["kotlin-lsp"] = {
|
vim.lsp.config["kotlin-lsp"] = {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue