update plugins
This commit is contained in:
parent
421382f27c
commit
01d3154218
7 changed files with 110 additions and 29 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
require("aleidk.IDE.lsp")
|
require("aleidk.IDE.lsp")
|
||||||
require("aleidk.IDE.completion")
|
require("aleidk.IDE.completion")
|
||||||
|
require("aleidk.IDE.null-ls")
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,16 @@ end
|
||||||
-- Add any additional override configuration in the following tables. They will be passed to
|
-- Add any additional override configuration in the following tables. They will be passed to
|
||||||
-- the `settings` field of the server config. You must look up that documentation yourself.
|
-- the `settings` field of the server config. You must look up that documentation yourself.
|
||||||
local servers = {
|
local servers = {
|
||||||
-- clangd = {},
|
bashls = {},
|
||||||
-- gopls = {},
|
cssls = {},
|
||||||
-- pyright = {},
|
dockerls = {},
|
||||||
-- rust_analyzer = {},
|
emmet_ls = {},
|
||||||
-- tsserver = {},
|
html = {},
|
||||||
|
pyright = {},
|
||||||
|
rust_analyzer = {},
|
||||||
|
sqlls = {},
|
||||||
|
tsserver = {},
|
||||||
|
yamlls = {},
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
Lua = {
|
Lua = {
|
||||||
workspace = { checkThirdParty = false },
|
workspace = { checkThirdParty = false },
|
||||||
|
|
|
||||||
38
config/nvim/lua/aleidk/IDE/null-ls.lua
Normal file
38
config/nvim/lua/aleidk/IDE/null-ls.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
-- Linter and formatter configuration
|
||||||
|
|
||||||
|
require("mason-null-ls").setup({
|
||||||
|
handlers = {}, -- this make mason-null-ls to auto setup handlers
|
||||||
|
ensure_installed = {
|
||||||
|
"blade_formatter",
|
||||||
|
"blue",
|
||||||
|
"eslint_d",
|
||||||
|
"fixjson",
|
||||||
|
"gitlint",
|
||||||
|
"intelephense",
|
||||||
|
"markdownlint",
|
||||||
|
"php-cs-fixer",
|
||||||
|
"prettierd",
|
||||||
|
"shellcheck",
|
||||||
|
"shfmt",
|
||||||
|
"sql-formatter",
|
||||||
|
"stylua",
|
||||||
|
"yamlint",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
local null_ls = require("null-ls.builtins")
|
||||||
|
|
||||||
|
require("null-ls").setup({
|
||||||
|
sources = {
|
||||||
|
null_ls.formatting.prettierd.with({
|
||||||
|
disabled_filetypes = { "markdown" },
|
||||||
|
}),
|
||||||
|
|
||||||
|
null_ls.formatting.phpcsfixer.with({
|
||||||
|
extra_args = {
|
||||||
|
"--config",
|
||||||
|
"$HOME/.config/php-cs-fixer-conf.php",
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
@ -1,30 +1,32 @@
|
||||||
local colorscheme = "rose-pine"
|
local colorscheme = "onedark"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"rose-pine/neovim",
|
"olimorris/onedarkpro.nvim",
|
||||||
name = colorscheme,
|
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function(_, opts)
|
|
||||||
require(colorscheme).setup(opts)
|
|
||||||
vim.cmd.colorscheme(colorscheme)
|
|
||||||
end,
|
|
||||||
opts = {
|
opts = {
|
||||||
--- @usage 'auto'|'main'|'moon'|'dawn'
|
options = {
|
||||||
variant = "moon",
|
transparency = true, -- Use a transparentbackground?
|
||||||
--- @usage 'main'|'moon'|'dawn'
|
|
||||||
dark_variant = "moon",
|
|
||||||
--- @usage string hex value or named color from rosepinetheme.com/palette
|
|
||||||
groups = {
|
|
||||||
background = "none",
|
|
||||||
},
|
},
|
||||||
-- Change specific vim highlight groups
|
colors = {
|
||||||
-- https://github.com/rose-pine/neovim/wiki/Recipes
|
bg = "#000000",
|
||||||
highlight_groups = {
|
fg = "#abb2bf",
|
||||||
TelescopeBorder = { fg = "highlight_high", bg = "none" },
|
red = "#ef596f",
|
||||||
TelescopeNormal = { bg = "none" },
|
orange = "#fab387",
|
||||||
TelescopePromptNormal = { bg = "base" },
|
yellow = "#e5c07b",
|
||||||
TelescopeResultsNormal = { fg = "subtle", bg = "none" },
|
green = "#89ca78",
|
||||||
TelescopeSelection = { fg = "text", bg = "base" },
|
cyan = "#2bbac5",
|
||||||
TelescopeSelectionCaret = { fg = "rose", bg = "rose" },
|
blue = "#61afef",
|
||||||
|
purple = "#d55fde",
|
||||||
|
white = "#abb2bf",
|
||||||
|
black = "#000000",
|
||||||
|
gray = "#434852",
|
||||||
|
highlight = "#e2be7d",
|
||||||
|
comment = "#7f848e",
|
||||||
|
none = "NONE",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("onedarkpro").setup(opts)
|
||||||
|
vim.cmd.colorscheme(colorscheme)
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,15 @@ return {
|
||||||
dependencies = { "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip" },
|
dependencies = { "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"jay-babu/mason-null-ls.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
dependencies = {
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
-- Useful plugin to show you pending keybinds.
|
-- Useful plugin to show you pending keybinds.
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
|
|
|
||||||
14
config/nvim/lua/aleidk/plugins/lsp_signature.lua
Normal file
14
config/nvim/lua/aleidk/plugins/lsp_signature.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
return {
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
lazy = false, -- Doesn't work if lazy loaded
|
||||||
|
opts = {
|
||||||
|
hint_enable = false,
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>lk",
|
||||||
|
vim.lsp.buf.signature_help,
|
||||||
|
desc = "Toggle signature",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
13
config/nvim/lua/aleidk/plugins/nvim-spider.lua
Normal file
13
config/nvim/lua/aleidk/plugins/nvim-spider.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
"chrisgrieser/nvim-spider",
|
||||||
|
event = "VeryLazy",
|
||||||
|
config = function()
|
||||||
|
require("spider").setup({
|
||||||
|
skipInsignificantPunctuation = false,
|
||||||
|
})
|
||||||
|
vim.keymap.set({ "n", "o", "x" }, "w", "<cmd>lua require('spider').motion('w')<CR>", { desc = "Spider-w" })
|
||||||
|
vim.keymap.set({ "n", "o", "x" }, "e", "<cmd>lua require('spider').motion('e')<CR>", { desc = "Spider-e" })
|
||||||
|
vim.keymap.set({ "n", "o", "x" }, "b", "<cmd>lua require('spider').motion('b')<CR>", { desc = "Spider-b" })
|
||||||
|
vim.keymap.set({ "n", "o", "x" }, "ge", "<cmd>lua require('spider').motion('ge')<CR>", { desc = "Spider-ge" })
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue