63 lines
1.4 KiB
Lua
63 lines
1.4 KiB
Lua
return {
|
|
-- Conform (formatter)
|
|
{
|
|
"stevearc/conform.nvim",
|
|
lazy = false,
|
|
cmd = { "ConformInfo", "ConformFormat" }, -- enables :ConformInfo before load
|
|
keys = {
|
|
{
|
|
"g+w",
|
|
function()
|
|
require("conform").format({ async = false, lsp_fallback = true })
|
|
end,
|
|
mode = "n",
|
|
desc = "Format file (Conform)",
|
|
},
|
|
},
|
|
config = function()
|
|
require("conform").setup(require "configs.conform")
|
|
end,
|
|
},
|
|
|
|
-- LSP
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require "configs.lspconfig"
|
|
end,
|
|
},
|
|
|
|
-- Telescope
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
config = function()
|
|
require("telescope").setup {}
|
|
end,
|
|
},
|
|
|
|
-- Treesitter
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
build = ":TSUpdate",
|
|
config = function()
|
|
require("nvim-treesitter.configs").setup {
|
|
ensure_installed = { "markdown", "sql", "vim", "lua", "vimdoc", "html", "css" },
|
|
highlight = { enable = true, additional_vim_regex_highlighting = { "markdown" } },
|
|
}
|
|
end,
|
|
},
|
|
|
|
-- Transparent (optional)
|
|
-- { "xiyaowong/transparent.nvim", lazy = false },
|
|
|
|
-- Mason (to install pgformatter/sqlfluff)
|
|
{
|
|
"williamboman/mason.nvim",
|
|
cmd = { "Mason", "MasonInstall", "MasonUpdate" },
|
|
config = function()
|
|
require("mason").setup()
|
|
end,
|
|
},
|
|
}
|