neoformat
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"tabWidth": 4,
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ".prettierrc",
|
||||||
|
"options": {
|
||||||
|
"parser": "json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
column_width = 120
|
column_width = 80
|
||||||
line_endings = "Unix"
|
line_endings = "Unix"
|
||||||
indent_type = "Spaces"
|
indent_type = "Tabs"
|
||||||
indent_width = 2
|
indent_width = 4
|
||||||
quote_style = "AutoPreferDouble"
|
quote_style = "AutoPreferDouble"
|
||||||
call_parentheses = "None"
|
call_parentheses = "None"
|
||||||
|
|||||||
@@ -1,44 +1,41 @@
|
|||||||
if vim.env.PROF then
|
if vim.env.PROF then
|
||||||
local snacks = vim.fn.stdpath("data") .. "/lazy/snacks.nvim"
|
local snacks = vim.fn.stdpath "data" .. "/lazy/snacks.nvim"
|
||||||
|
|
||||||
vim.opt.rtp:append(snacks)
|
vim.opt.rtp:append(snacks)
|
||||||
require("snacks.profiler").startup({
|
require("snacks.profiler").startup {
|
||||||
startup = {
|
startup = {
|
||||||
event = "UIEnter",
|
event = "UIEnter",
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.g.base46_cache = vim.fn.stdpath("data") .. "/base46_cache/"
|
local home = os.getenv "HOME"
|
||||||
|
|
||||||
local home = os.getenv("HOME")
|
|
||||||
package.path = package.path
|
package.path = package.path
|
||||||
.. ";" .. home .. "/.luarocks/share/lua/5.4/?.lua"
|
.. ";"
|
||||||
.. ";" .. home .. "/.luarocks/share/lua/5.4/?/init.lua"
|
.. home
|
||||||
|
.. "/.luarocks/share/lua/5.4/?.lua"
|
||||||
|
.. ";"
|
||||||
|
.. home
|
||||||
|
.. "/.luarocks/share/lua/5.4/?/init.lua"
|
||||||
|
|
||||||
package.cpath = package.cpath
|
package.cpath = package.cpath .. ";" .. home .. "/.luarocks/lib/lua/5.4/?.so"
|
||||||
.. ";" .. home .. "/.luarocks/lib/lua/5.4/?.so"
|
|
||||||
|
|
||||||
vim.cmd('source ' .. vim.fn.stdpath("config") .. "/cursor.vim")
|
vim.cmd("source " .. vim.fn.stdpath "config" .. "/cursor.vim")
|
||||||
require("config.lazy")
|
require "config.lazy"
|
||||||
require("options")
|
require "options"
|
||||||
require("globals")
|
require "globals"
|
||||||
require("mappings")
|
require "mappings"
|
||||||
require("autocmd")
|
require "autocmd"
|
||||||
require("minimodules").load_modules()
|
require("minimodules").load_modules()
|
||||||
-- require("coc-settings")
|
-- require("coc-settings")
|
||||||
|
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
require("config.neovide")
|
require "config.neovide"
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.filetype.add({
|
vim.filetype.add {
|
||||||
pattern = {
|
pattern = {
|
||||||
[".*/hypr/.*%.conf"] = "hyprlang",
|
[".*/hypr/.*%.conf"] = "hyprlang",
|
||||||
[".*/uwsm/env.*"] = "zsh",
|
[".*/uwsm/env.*"] = "zsh",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
-- for _, v in ipairs( vim.fn.readdir( vim.g.base46_cache )) do
|
|
||||||
-- dofile( vim.g.base46_cache .. v )
|
|
||||||
-- end
|
|
||||||
|
|||||||
+10
-8
@@ -5,23 +5,25 @@ autocmd("LspAttach", {
|
|||||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||||
if client then
|
if client then
|
||||||
vim.lsp.document_color.enable(false, args.buf, { "background" })
|
vim.lsp.document_color.enable(false, args.buf, { "background" })
|
||||||
-- require("workspace-diagnostics").populate_workspace_diagnostics(client, 0)
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
autocmd("VimLeave", {
|
autocmd("VimLeave", {
|
||||||
command = "set guicursor=a:ver25-Cursor"
|
command = "set guicursor=a:ver25-Cursor",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- autocmd({ "CursorHold" }, {
|
autocmd("BufWritePre", {
|
||||||
-- callback = function()
|
callback = function()
|
||||||
-- vim.diagnostic.open_float(nil, { focus = false })
|
local ok = pcall(function()
|
||||||
-- end
|
vim.cmd "undojoin"
|
||||||
-- })
|
end)
|
||||||
|
vim.cmd "Neoformat"
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
autocmd({ "InsertLeave" }, {
|
autocmd({ "InsertLeave" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
require("lint").try_lint()
|
require("lint").try_lint()
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
|
|||||||
+69
-53
@@ -12,46 +12,15 @@ local function flatten_to_array(t)
|
|||||||
_flatten(t)
|
_flatten(t)
|
||||||
return res
|
return res
|
||||||
end
|
end
|
||||||
-- local cmp = require("cmp")
|
|
||||||
-- local cmp_lsp = require("cmp_nvim_lsp")
|
|
||||||
local capabilities = vim.tbl_deep_extend(
|
local capabilities = vim.tbl_deep_extend(
|
||||||
"force",
|
"force",
|
||||||
{},
|
{},
|
||||||
vim.lsp.protocol.make_client_capabilities()
|
vim.lsp.protocol.make_client_capabilities()
|
||||||
-- cmp_lsp.default_capabilities()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
local cmp_kinds = {
|
require("fidget").setup {}
|
||||||
Text = ' ',
|
|
||||||
Method = ' ',
|
|
||||||
Function = ' ',
|
|
||||||
Constructor = ' ',
|
|
||||||
Field = ' ',
|
|
||||||
Variable = ' ',
|
|
||||||
Class = ' ',
|
|
||||||
Interface = ' ',
|
|
||||||
Module = ' ',
|
|
||||||
Property = ' ',
|
|
||||||
Unit = ' ',
|
|
||||||
Value = ' ',
|
|
||||||
Enum = ' ',
|
|
||||||
Keyword = ' ',
|
|
||||||
Snippet = ' ',
|
|
||||||
Color = ' ',
|
|
||||||
File = ' ',
|
|
||||||
Reference = ' ',
|
|
||||||
Folder = ' ',
|
|
||||||
EnumMember = ' ',
|
|
||||||
Constant = ' ',
|
|
||||||
Struct = ' ',
|
|
||||||
Event = ' ',
|
|
||||||
Operator = ' ',
|
|
||||||
TypeParameter = ' ',
|
|
||||||
}
|
|
||||||
|
|
||||||
require("fidget").setup({})
|
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup {
|
||||||
automatic_enable = true,
|
automatic_enable = true,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
@@ -66,24 +35,28 @@ require("mason-lspconfig").setup({
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
["tailwindcss"] = function()
|
["tailwindcss"] = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require "lspconfig"
|
||||||
lspconfig.tailwindcss.setup {
|
lspconfig.tailwindcss.setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["css-lsp"] = function()
|
["css-lsp"] = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require "lspconfig"
|
||||||
lspconfig.cssls.setup {
|
lspconfig.cssls.setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
||||||
zls = function()
|
zls = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require "lspconfig"
|
||||||
lspconfig.zls.setup({
|
lspconfig.zls.setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
root_dir = lspconfig.util.root_pattern(".git", "build.zig", "zls.json"),
|
root_dir = lspconfig.util.root_pattern(
|
||||||
|
".git",
|
||||||
|
"build.zig",
|
||||||
|
"zls.json"
|
||||||
|
),
|
||||||
settings = {
|
settings = {
|
||||||
zls = {
|
zls = {
|
||||||
enable_inlay_hints = true,
|
enable_inlay_hints = true,
|
||||||
@@ -91,27 +64,33 @@ require("mason-lspconfig").setup({
|
|||||||
warn_style = true,
|
warn_style = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
vim.g.zig_fmt_parse_errors = 0
|
vim.g.zig_fmt_parse_errors = 0
|
||||||
vim.g.zig_fmt_autosave = 0
|
vim.g.zig_fmt_autosave = 0
|
||||||
|
|
||||||
end,
|
end,
|
||||||
["lua_ls"] = function()
|
["lua_ls"] = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require "lspconfig"
|
||||||
lspconfig.lua_ls.setup {
|
lspconfig.lua_ls.setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
runtime = { version = "Lua 5.1" },
|
runtime = { version = "Lua 5.1" },
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
globals = { "bit", "vim", "it", "describe", "before_each", "after_each" },
|
globals = {
|
||||||
}
|
"bit",
|
||||||
}
|
"vim",
|
||||||
}
|
"it",
|
||||||
|
"describe",
|
||||||
|
"before_each",
|
||||||
|
"after_each",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
-- cmp.setup {
|
-- cmp.setup {
|
||||||
-- preselect = 'None',
|
-- preselect = 'None',
|
||||||
@@ -172,7 +151,7 @@ require("mason-lspconfig").setup({
|
|||||||
-- }),
|
-- }),
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config {
|
||||||
-- update_in_insert = true,
|
-- update_in_insert = true,
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
virtual_lines = false,
|
virtual_lines = false,
|
||||||
@@ -186,20 +165,32 @@ vim.diagnostic.config({
|
|||||||
header = "",
|
header = "",
|
||||||
prefix = "",
|
prefix = "",
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
|
||||||
local lspconfig = vim.lsp.config
|
local lspconfig = vim.lsp.config
|
||||||
|
|
||||||
lspconfig("texlab", {
|
lspconfig("texlab", {
|
||||||
cmd = { "texlab" },
|
cmd = { "texlab" },
|
||||||
filetypes = { "tex", "bib", "plaintex" },
|
filetypes = { "tex", "bib", "plaintex" },
|
||||||
root_markers = { ".git", ".latexmkrc", "latexmkrc", ".texlabroot", "texlabroot", "Tectonic.toml" },
|
root_markers = {
|
||||||
|
".git",
|
||||||
|
".latexmkrc",
|
||||||
|
"latexmkrc",
|
||||||
|
".texlabroot",
|
||||||
|
"texlabroot",
|
||||||
|
"Tectonic.toml",
|
||||||
|
},
|
||||||
settings = {
|
settings = {
|
||||||
texlab = {
|
texlab = {
|
||||||
rootDirectory = nil,
|
rootDirectory = nil,
|
||||||
build = {
|
build = {
|
||||||
executable = "latexmk",
|
executable = "latexmk",
|
||||||
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
|
args = {
|
||||||
|
"-pdf",
|
||||||
|
"-interaction=nonstopmode",
|
||||||
|
"-synctex=1",
|
||||||
|
"%f",
|
||||||
|
},
|
||||||
onSave = true,
|
onSave = true,
|
||||||
forwardSearchAfter = true,
|
forwardSearchAfter = true,
|
||||||
},
|
},
|
||||||
@@ -207,7 +198,8 @@ lspconfig("texlab", {
|
|||||||
executable = "zathura",
|
executable = "zathura",
|
||||||
args = {
|
args = {
|
||||||
"--synctex-editor-command",
|
"--synctex-editor-command",
|
||||||
[[ nvim-texlabconfig -file '%%%{input}' -line %%%{line} -server ]] .. vim.v.servername,
|
[[ nvim-texlabconfig -file '%%%{input}' -line %%%{line} -server ]]
|
||||||
|
.. vim.v.servername,
|
||||||
"--synctex-forward",
|
"--synctex-forward",
|
||||||
"%l:1:%f",
|
"%l:1:%f",
|
||||||
"%p",
|
"%p",
|
||||||
@@ -220,7 +212,7 @@ lspconfig("texlab", {
|
|||||||
diagnosticsDelay = 300,
|
diagnosticsDelay = 300,
|
||||||
latexFormatter = "latexindent",
|
latexFormatter = "latexindent",
|
||||||
latexindent = {
|
latexindent = {
|
||||||
['local'] = nil,
|
["local"] = nil,
|
||||||
modifyLineBreaks = false,
|
modifyLineBreaks = false,
|
||||||
},
|
},
|
||||||
bibtexFormatter = "texlab",
|
bibtexFormatter = "texlab",
|
||||||
@@ -233,6 +225,27 @@ lspconfig("qmlls", {
|
|||||||
cmd = { "qmlls6" },
|
cmd = { "qmlls6" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
lspconfig("jsonls", {
|
||||||
|
settings = {
|
||||||
|
json = {
|
||||||
|
schemas = require("schemastore").json.schemas(),
|
||||||
|
validate = { enable = true },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
lspconfig("yamlls", {
|
||||||
|
settings = {
|
||||||
|
yaml = {
|
||||||
|
schemaStore = {
|
||||||
|
enable = false,
|
||||||
|
url = "",
|
||||||
|
},
|
||||||
|
schemas = require("schemastore").yaml.schemas(),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
local lspenable = vim.lsp.enable
|
local lspenable = vim.lsp.enable
|
||||||
local servers = {
|
local servers = {
|
||||||
"html",
|
"html",
|
||||||
@@ -251,7 +264,10 @@ local flat_servers = flatten_to_array(servers)
|
|||||||
for _, server in ipairs(flat_servers) do
|
for _, server in ipairs(flat_servers) do
|
||||||
lspconfig(server, {
|
lspconfig(server, {
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
require("workspace-diagnostics").populate_workspace_diagnostics( client, bufnr )
|
require("workspace-diagnostics").populate_workspace_diagnostics(
|
||||||
|
client,
|
||||||
|
bufnr
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
lspenable(server)
|
lspenable(server)
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
-- local null_ls = require("null-ls")
|
||||||
|
--
|
||||||
|
-- local group = vim.api.nvim_create_augroup("lsp_format_on_save", { clear = false })
|
||||||
|
-- local event = "BufWritePre" -- or "BufWritePost"
|
||||||
|
-- local async = event == "BufWritePost"
|
||||||
|
--
|
||||||
|
-- null_ls.setup({
|
||||||
|
-- on_attach = function(client, bufnr)
|
||||||
|
-- if client.supports_method("textDocument/formatting") then
|
||||||
|
-- vim.keymap.set("n", "<Leader>f", function()
|
||||||
|
-- vim.lsp.buf.format({ bufnr = vim.api.nvim_get_current_buf() })
|
||||||
|
-- end, { buffer = bufnr, desc = "[lsp] format" })
|
||||||
|
--
|
||||||
|
-- -- format on save
|
||||||
|
-- vim.api.nvim_clear_autocmds({ buffer = bufnr, group = group })
|
||||||
|
-- vim.api.nvim_create_autocmd(event, {
|
||||||
|
-- buffer = bufnr,
|
||||||
|
-- group = group,
|
||||||
|
-- callback = function()
|
||||||
|
-- vim.lsp.buf.format({ bufnr = bufnr, async = async })
|
||||||
|
-- end,
|
||||||
|
-- desc = "[lsp] format on save",
|
||||||
|
-- })
|
||||||
|
-- end
|
||||||
|
--
|
||||||
|
-- if client.supports_method("textDocument/rangeFormatting") then
|
||||||
|
-- vim.keymap.set("x", "<Leader>f", function()
|
||||||
|
-- vim.lsp.buf.format({ bufnr = vim.api.nvim_get_current_buf() })
|
||||||
|
-- end, { buffer = bufnr, desc = "[lsp] format" })
|
||||||
|
-- end
|
||||||
|
-- end,
|
||||||
|
-- })
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
local prettier = require("prettier")
|
||||||
|
|
||||||
|
prettier.setup({
|
||||||
|
bin = 'prettier',
|
||||||
|
filetypes = {
|
||||||
|
"css",
|
||||||
|
"graphql",
|
||||||
|
"html",
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"json",
|
||||||
|
"less",
|
||||||
|
"markdown",
|
||||||
|
"scss",
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
"yaml",
|
||||||
|
},
|
||||||
|
})
|
||||||
+50
-39
@@ -1,25 +1,25 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
require("plugins.colorschemes")
|
require "plugins.colorschemes",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-mini/mini.nvim",
|
"nvim-mini/mini.nvim",
|
||||||
version = false,
|
version = false,
|
||||||
|
|
||||||
modules = function()
|
modules = function()
|
||||||
require("config.mini-modules")
|
require "config.mini-modules"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.treesitter")
|
require "config.treesitter"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rmagatti/auto-session",
|
"rmagatti/auto-session",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.autosession")
|
require "config.autosession"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -28,7 +28,7 @@ return {
|
|||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("config.telescope")
|
require "config.telescope"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -44,26 +44,26 @@ return {
|
|||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.barbar")
|
require "config.barbar"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.lualine")
|
require "config.lualine"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mawkler/modicator.nvim",
|
"mawkler/modicator.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.modicator")
|
require "config.modicator"
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"jiaoshijie/undotree",
|
"jiaoshijie/undotree",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.undotree")
|
require "config.undotree"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ return {
|
|||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.autopairs")
|
require "config.autopairs"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -109,17 +109,17 @@ return {
|
|||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.dapconf")
|
require "config.dapconf"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
require("config.snacks")
|
require "config.snacks",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/lazydev.nvim",
|
"folke/lazydev.nvim",
|
||||||
ft = "lua",
|
ft = "lua",
|
||||||
opts = function()
|
opts = function()
|
||||||
require("config.lazydev")
|
require "config.lazydev"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -131,20 +131,21 @@ return {
|
|||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
-- "saadparwaiz1/cmp_luasnip",
|
-- "saadparwaiz1/cmp_luasnip",
|
||||||
"j-hui/fidget.nvim",
|
"j-hui/fidget.nvim",
|
||||||
|
"b0o/schemastore.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("config.lspconfig")
|
require "config.lspconfig"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- {
|
{
|
||||||
-- "smolck/command-completion.nvim",
|
"smolck/command-completion.nvim",
|
||||||
-- opts = {
|
opts = {
|
||||||
-- border = nil,
|
border = nil,
|
||||||
-- highlight_selection = true,
|
highlight_selection = true,
|
||||||
-- use_matchfuzzy = true,
|
use_matchfuzzy = true,
|
||||||
-- tab_completion = true,
|
tab_completion = true,
|
||||||
-- },
|
},
|
||||||
-- },
|
},
|
||||||
{
|
{
|
||||||
"andweeb/presence.nvim",
|
"andweeb/presence.nvim",
|
||||||
},
|
},
|
||||||
@@ -158,7 +159,7 @@ return {
|
|||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("config.harpoon")
|
require "config.harpoon"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- {
|
-- {
|
||||||
@@ -180,7 +181,7 @@ return {
|
|||||||
{
|
{
|
||||||
"f3fora/nvim-texlabconfig",
|
"f3fora/nvim-texlabconfig",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.texlab")
|
require "config.texlab"
|
||||||
end,
|
end,
|
||||||
build = "go build",
|
build = "go build",
|
||||||
},
|
},
|
||||||
@@ -199,7 +200,7 @@ return {
|
|||||||
{
|
{
|
||||||
"ThePrimeagen/refactoring.nvim",
|
"ThePrimeagen/refactoring.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.refactoring")
|
require "config.refactoring"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -226,27 +227,27 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
picker_opts = require("telescope.themes").get_dropdown({
|
picker_opts = require("telescope.themes").get_dropdown {
|
||||||
enable_preview = true,
|
enable_preview = true,
|
||||||
}),
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"aznhe21/actions-preview.nvim",
|
"aznhe21/actions-preview.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.actions-preview")
|
require "config.actions-preview"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-lint",
|
"mfussenegger/nvim-lint",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.lint")
|
require "config.lint"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rachartier/tiny-inline-diagnostic.nvim",
|
"rachartier/tiny-inline-diagnostic.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.TID")
|
require "config.TID"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -256,27 +257,37 @@ return {
|
|||||||
"artemave/workspace-diagnostics.nvim",
|
"artemave/workspace-diagnostics.nvim",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
require("config.dev-tools")
|
require "config.dev-tools",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Fildo7525/pretty_hover",
|
"Fildo7525/pretty_hover",
|
||||||
event = "LspAttach",
|
event = "LspAttach",
|
||||||
opts = {}
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"knubie/vim-kitty-navigator",
|
"knubie/vim-kitty-navigator",
|
||||||
build = "cp ./*.py ~/.config/kitty/"
|
build = "cp ./*.py ~/.config/kitty/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
require("config.dropbar")
|
require "config.dropbar",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
require("config.blink")
|
require "config.blink",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("config.gitsigns")
|
require "config.gitsigns"
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sbdchd/neoformat",
|
||||||
|
init = function()
|
||||||
|
vim.cmd(
|
||||||
|
"source "
|
||||||
|
.. vim.fn.stdpath "config"
|
||||||
|
.. "/lua/plugins/neoformat.vim"
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
let g:neoformat_enabled_python = ['autopep8']
|
||||||
|
let g:neoformat_enabled_javascript = ['prettier']
|
||||||
|
let g:neoformat_enabled_html = ['prettier']
|
||||||
|
let g:neoformat_enabled_css = ['prettier']
|
||||||
|
let g:neoformat_enabled_json = ['prettier']
|
||||||
|
let g:neoformat_enabled_yaml = ['prettier']
|
||||||
|
let g:neoformat_enabled_lua = ['stylua']
|
||||||
|
let g:neoformat_enabled_rust = ['rustfmt']
|
||||||
|
let g:neoformat_enabled_cpp = ['uncrustify']
|
||||||
|
let g:neoformat_enabled_markdown = ['prettier']
|
||||||
|
|
||||||
|
let g:neoformat_basic_format_align = 1
|
||||||
|
let g:neoformat_basic_format_retab = 1
|
||||||
|
let g:neoformat_basic_format_trim = 1
|
||||||
Reference in New Issue
Block a user