This commit is contained in:
2023-01-20 10:54:22 +01:00
parent 77036d0584
commit 7a65e3fb59
18 changed files with 123 additions and 164 deletions

5
plugins/dataview-js.lua Normal file
View File

@@ -0,0 +1,5 @@
--return {
-- "kjuulh/dataviewjs.nvim",
-- after = "nvim-treesitter",
-- config = function() require("dataviewjs").init {} end,
--}

View File

@@ -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,
},
}

View File

@@ -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,
},
}

View File

@@ -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" } },
}

View File

@@ -1,31 +1,29 @@
return function(config) -- overrides `require("null-ls").setup(config)`
-- config variable is the default configuration table for the setup function call
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,
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.deno_fmt.with {
filetypes = { "markdown" },
},
null_ls.builtins.formatting.csharpier,
null_ls.builtins.diagnostics.sqlfluff.with {
extra_args = {
"--dialect",
"postgres",
"--config",
"/Users/kah/.config/sqlfluff/sqlc/config.toml",
}, -- change to your dialect
},
null_ls.builtins.formatting.gofumpt,
null_ls.builtins.formatting.goimports,
null_ls.builtins.formatting.goimports_reviser,
null_ls.builtins.formatting.golines,
--null_ls.builtins.formatting.pg_format,
}
return config -- return final config table
end
return {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, config)
local null_ls = require "null-ls"
config.sources = {
-- Set a formatter
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.deno_fmt.with {
filetypes = { "markdown" },
},
null_ls.builtins.formatting.csharpier,
null_ls.builtins.diagnostics.sqlfluff.with {
extra_args = {
"--dialect",
"postgres",
"--config",
"/Users/kah/.config/sqlfluff/sqlc/config.toml",
}, -- change to your dialect
},
null_ls.builtins.formatting.gofumpt,
null_ls.builtins.formatting.goimports,
null_ls.builtins.formatting.goimports_reviser,
null_ls.builtins.formatting.golines,
--null_ls.builtins.formatting.pg_format,
}
return config -- return final config table
end,
}

30
plugins/nvim-dap-go.lua Normal file
View 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,
}

View 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
View 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
View File

@@ -0,0 +1,4 @@
return {
"kjuulh/ranger.nvim",
config = function() require("ranger").setup {} end,
}

3
plugins/tabular.lua Normal file
View File

@@ -0,0 +1,3 @@
return {
"godlygeek/tabular",
}

3
plugins/tokyonight.lua Normal file
View File

@@ -0,0 +1,3 @@
return {
"folke/tokyonight.nvim",
}

View File

@@ -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
View File

@@ -0,0 +1,3 @@
return {
"elzr/vim-json",
}

3
plugins/vim-markdown.lua Normal file
View File

@@ -0,0 +1,3 @@
return {
"plasticboy/vim-markdown",
}