with v3
This commit is contained in:
parent
77036d0584
commit
7a65e3fb59
@ -2,7 +2,7 @@ return {
|
||||
source_priority = {
|
||||
nvim_lsp = 1000,
|
||||
luasnip = 750,
|
||||
buffer = 500,
|
||||
path = 250,
|
||||
path = 500,
|
||||
buffer = 250,
|
||||
},
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ return {
|
||||
autoformat_enabled = true, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled)
|
||||
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
|
||||
heirline_bufferline = false, -- enable new heirline based bufferline (requires :PackerSync after changing)
|
||||
heirline_bufferline = true, -- enable new heirline based bufferline (requires :PackerSync after changing)
|
||||
|
||||
vim_markdown_folding_disabled = 1,
|
||||
vim_markdown_conceal = 1,
|
||||
|
5
plugins/dataview-js.lua
Normal file
5
plugins/dataview-js.lua
Normal file
@ -0,0 +1,5 @@
|
||||
--return {
|
||||
-- "kjuulh/dataviewjs.nvim",
|
||||
-- after = "nvim-treesitter",
|
||||
-- config = function() require("dataviewjs").init {} end,
|
||||
--}
|
119
plugins/init.lua
119
plugins/init.lua
@ -1,119 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope-file-browser.nvim",
|
||||
after = "telescope.nvim",
|
||||
config = function() require("telescope").load_extension "file_browser" end,
|
||||
},
|
||||
--{
|
||||
-- "ahmedkhalf/project.nvim",
|
||||
-- after = "telescope.nvim",
|
||||
-- config = function()
|
||||
-- require("project_nvim").setup {
|
||||
-- -- Manual mode doesn't automatically change your root directory, so you have
|
||||
-- -- the option to manually do so using `:ProjectRoot` command.
|
||||
-- manual_mode = false,
|
||||
|
||||
-- -- Methods of detecting the root directory. **"lsp"** uses the native neovim
|
||||
-- -- lsp, while **"pattern"** uses vim-rooter like glob pattern matching. Here
|
||||
-- -- order matters: if one is not detected, the other is used as fallback. You
|
||||
-- -- can also delete or rearangne the detection methods.
|
||||
-- detection_methods = { "lsp", "pattern" },
|
||||
|
||||
-- -- All the patterns used to detect root dir, when **"pattern"** is in
|
||||
-- -- detection_methods
|
||||
-- patterns = { ".git", "Makefile", "package.json" },
|
||||
|
||||
-- -- Table of lsp clients to ignore by name
|
||||
-- -- eg: { "efm", ... }
|
||||
-- ignore_lsp = {},
|
||||
|
||||
-- -- Don't calculate root dir on specific directories
|
||||
-- -- Ex: { "~/.cargo/*", ... }
|
||||
-- exclude_dirs = {},
|
||||
|
||||
-- -- Show hidden files in telescope
|
||||
-- show_hidden = false,
|
||||
|
||||
-- -- When set to false, you will get a message when project.nvim changes your
|
||||
-- -- directory.
|
||||
-- silent_chdir = true,
|
||||
|
||||
-- -- What scope to change the directory, valid options are
|
||||
-- -- * global (default)
|
||||
-- -- * tab
|
||||
-- -- * win
|
||||
-- scope_chdir = "global",
|
||||
|
||||
-- -- Path where project.nvim will store the project history for use in
|
||||
-- -- telescope
|
||||
-- datapath = vim.fn.stdpath "data",
|
||||
-- }
|
||||
-- require("telescope").load_extension "projects"
|
||||
-- end,
|
||||
--},
|
||||
{
|
||||
after = "telescope.nvim",
|
||||
"pwntester/octo.nvim",
|
||||
config = function() require("octo").setup() end,
|
||||
},
|
||||
--{
|
||||
-- "~/git/git.front.kjuulh.io/kjuulh/github-presense",
|
||||
-- config = function() require("github_presence").setup {} end,
|
||||
--},
|
||||
{
|
||||
"~/git/git.front.kjuulh.io/kjuulh/ranger.nvim",
|
||||
config = function() require("ranger").setup {} end,
|
||||
},
|
||||
{
|
||||
"~/git/git.front.kjuulh.io/kjuulh/dataviewjs.nvim",
|
||||
after = "nvim-treesitter",
|
||||
config = function() require("dataviewjs").init {} end,
|
||||
},
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
run = function() vim.fn["mkdp#util#install"]() end,
|
||||
},
|
||||
{
|
||||
"godlygeek/tabular",
|
||||
},
|
||||
{
|
||||
"elzr/vim-json",
|
||||
},
|
||||
{
|
||||
"plasticboy/vim-markdown",
|
||||
},
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
},
|
||||
{ "scalameta/nvim-metals", requires = { "nvim-lua/plenary.nvim" } },
|
||||
{
|
||||
"leoluz/nvim-dap-go",
|
||||
config = function()
|
||||
require("dap-go").setup {
|
||||
-- Additional dap configurations can be added.
|
||||
-- dap_configurations accepts a list of tables where each entry
|
||||
-- represents a dap configuration. For more details do:
|
||||
-- :help dap-configuration
|
||||
dap_configurations = {
|
||||
{
|
||||
-- Must be "go" or it will be ignored by the plugin
|
||||
type = "go",
|
||||
name = "Attach remote",
|
||||
mode = "remote",
|
||||
request = "attach",
|
||||
},
|
||||
},
|
||||
-- delve configurations
|
||||
delve = {
|
||||
-- time to wait for delve to initialize the debug session.
|
||||
-- default to 20 seconds
|
||||
initialize_timeout_sec = 20,
|
||||
-- a string that defines the port to start delve debugger.
|
||||
-- default to string "${port}" which instructs nvim-dap
|
||||
-- to start the process in a random available port
|
||||
port = "${port}",
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
@ -1,3 +1,7 @@
|
||||
return {
|
||||
ensure_installed = { "sumneko_lua", "rust_analyzer", "gopls", "yamlls" },
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
opts = {
|
||||
ensure_installed = { "sumneko_lua", "rust_analyzer", "gopls", "yamlls", "tsserver", "terraformls" },
|
||||
automatic_installation = true,
|
||||
},
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
return { -- overrides `require("mason-null-ls").setup(...)`
|
||||
ensure_installed = { "prettier", "stylua" },
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
opts = { ensure_installed = { "prettier", "stylua" } },
|
||||
}
|
||||
|
@ -1,10 +1,7 @@
|
||||
return function(config) -- overrides `require("null-ls").setup(config)`
|
||||
-- config variable is the default configuration table for the setup function call
|
||||
return {
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
opts = function(_, config)
|
||||
local null_ls = require "null-ls"
|
||||
|
||||
-- Check supported formatters and linters
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||
config.sources = {
|
||||
-- Set a formatter
|
||||
null_ls.builtins.formatting.stylua,
|
||||
@ -28,4 +25,5 @@ return function(config) -- overrides `require("null-ls").setup(config)`
|
||||
--null_ls.builtins.formatting.pg_format,
|
||||
}
|
||||
return config -- return final config table
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
30
plugins/nvim-dap-go.lua
Normal file
30
plugins/nvim-dap-go.lua
Normal file
@ -0,0 +1,30 @@
|
||||
return {
|
||||
"leoluz/nvim-dap-go",
|
||||
config = function()
|
||||
require("dap-go").setup {
|
||||
-- Additional dap configurations can be added.
|
||||
-- dap_configurations accepts a list of tables where each entry
|
||||
-- represents a dap configuration. For more details do:
|
||||
-- :help dap-configuration
|
||||
dap_configurations = {
|
||||
{
|
||||
-- Must be "go" or it will be ignored by the plugin
|
||||
type = "go",
|
||||
name = "Attach remote",
|
||||
mode = "remote",
|
||||
request = "attach",
|
||||
},
|
||||
},
|
||||
-- delve configurations
|
||||
delve = {
|
||||
-- time to wait for delve to initialize the debug session.
|
||||
-- default to 20 seconds
|
||||
initialize_timeout_sec = 20,
|
||||
-- a string that defines the port to start delve debugger.
|
||||
-- default to string "${port}" which instructs nvim-dap
|
||||
-- to start the process in a random available port
|
||||
port = "${port}",
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
5
plugins/nvim-telescope.lua
Normal file
5
plugins/nvim-telescope.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
"nvim-telescope/telescope-file-browser.nvim",
|
||||
after = "telescope.nvim",
|
||||
config = function() require("telescope").load_extension "file_browser" end,
|
||||
}
|
5
plugins/octo.lua
Normal file
5
plugins/octo.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
after = "telescope.nvim",
|
||||
"pwntester/octo.nvim",
|
||||
config = function() require("octo").setup() end,
|
||||
}
|
4
plugins/ranger-nvim.lua
Normal file
4
plugins/ranger-nvim.lua
Normal file
@ -0,0 +1,4 @@
|
||||
return {
|
||||
"kjuulh/ranger.nvim",
|
||||
config = function() require("ranger").setup {} end,
|
||||
}
|
3
plugins/tabular.lua
Normal file
3
plugins/tabular.lua
Normal file
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"godlygeek/tabular",
|
||||
}
|
3
plugins/tokyonight.lua
Normal file
3
plugins/tokyonight.lua
Normal file
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"folke/tokyonight.nvim",
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
return { -- overrides `require("treesitter").setup(...)`
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"rust",
|
||||
"markdown",
|
||||
"typescript",
|
||||
"go",
|
||||
},
|
||||
},
|
||||
}
|
3
plugins/vim-json.lua
Normal file
3
plugins/vim-json.lua
Normal file
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"elzr/vim-json",
|
||||
}
|
3
plugins/vim-markdown.lua
Normal file
3
plugins/vim-markdown.lua
Normal file
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"plasticboy/vim-markdown",
|
||||
}
|
16
updater.lua
16
updater.lua
@ -1,17 +1,19 @@
|
||||
return {
|
||||
remote = "origin", -- remote to use
|
||||
channel = "stable", -- "stable" or "nightly"
|
||||
version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY)
|
||||
--branch = "main", -- branch name (NIGHTLY ONLY)
|
||||
commit = nil, -- commit hash (NIGHTLY ONLY)
|
||||
--channel = "stable", -- "stable" or "nightly"
|
||||
channel = "nightly", -- "stable" or "nightly"
|
||||
--version = "v2.11.7", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY)
|
||||
branch = "v3", -- branch name (NIGHTLY ONLY)
|
||||
--commit = nil, -- commit hash (NIGHTLY ONLY)
|
||||
pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
|
||||
skip_prompts = false, -- skip prompts about breaking changes
|
||||
show_changelog = true, -- show the changelog after performing an update
|
||||
auto_reload = false, -- automatically reload and sync packer after a successful update
|
||||
auto_quit = false, -- automatically quit the current session after a successful update
|
||||
-- remotes = { -- easily add new remotes to track
|
||||
-- ["remote_name"] = "https://remote_url.come/repo.git", -- full remote url
|
||||
remotes = { -- easily add new remotes to track
|
||||
["kjuulh/ranger.nvim"] = "https://git.front.kjuulh.io/kjuulh/ranger.nvim.git", -- full remote url
|
||||
["kjuulh/dataviewjs"] = "https://git.front.kjuulh.io/kjuulh/dataviewjs.nvim.git", -- full remote url
|
||||
-- ["remote2"] = "github_user/repo", -- GitHub user/repo shortcut,
|
||||
-- ["remote3"] = "github_user", -- GitHub user assume AstroNvim fork
|
||||
-- },
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user