update nvim config

This commit is contained in:
Yevhenii Moruhyi 2024-01-06 16:47:53 -05:00
parent 965b392ace
commit fd6fa59a6e
11 changed files with 54 additions and 158 deletions

View file

@ -1,20 +0,0 @@
return {
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
local cmp = require("cmp")
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } }))
cmp.setup({
window = {
completion = {
border = "single",
-- winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuThumb,Search:None",
},
documentation = {
border = "single",
},
},
})
end,
}

View file

@ -0,0 +1,16 @@
return {
{
"rose-pine/neovim",
name = "rose-pine",
opts = {
variant = "moon",
dark_variant = "moon",
},
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "rose-pine",
},
},
}

View file

@ -1,9 +1,18 @@
return {
{ "rcarriga/nvim-notify", enabled = false },
{ "rcarriga/nvim-notify", enabled = false },
{ "folke/todo-comments.nvim", enabled = false },
-- this one is the command line popup
{ "folke/noice.nvim", enabled = false },
{ "indent-blankline.nvim", enabled = false },
{ "mini.indentscope", enabled = false },
{ "RRethy/vim-illuminate", enabled = false },
{ "folke/noice.nvim", enabled = false },
{ "indent-blankline.nvim", enabled = false },
{ "mini.indentscope", enabled = false },
{ "RRethy/vim-illuminate", enabled = false },
{ "neodev.nvim", enabled = false },
{ "neo-tree.nvim", enabled = false },
{ "bufferline.nvim", enabled = false },
{ "dashboard-nvim", enabled = false },
{ "flash.nvim", enabled = false },
{ "mini.pairs", enabled = false },
{ "mini.ai", enabled = false },
{ "nvim-ts-autotag", enabled = false },
{ "conform.nvim", enabled = false },
}

View file

@ -1,41 +0,0 @@
return {
{
"neovim/nvim-lspconfig",
-- other settings removed for brevity
opts = {
---@type lspconfig.options
servers = {
eslint = {
settings = {
-- helps eslint find the eslintrc when it's placed in a subfolder instead of the cwd root
workingDirectory = { mode = "auto" },
},
},
},
setup = {
eslint = function()
require("lazyvim.util").on_attach(function(client)
if client.name == "eslint" then
client.server_capabilities.documentFormattingProvider = true
elseif client.name == "tsserver" then
client.server_capabilities.documentFormattingProvider = false
end
end)
end,
-- eslint = function()
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- callback = function(event)
-- local client = vim.lsp.get_active_clients({ bufnr = event.buf, name = "eslint" })[1]
-- if client then
-- local diag = vim.diagnostic.get(event.buf, { namespace = vim.lsp.diagnostic.get_namespace(client.id) })
-- if #diag > 0 then
-- vim.cmd("EslintFixAll")
-- end
-- end
-- end,
-- })
-- end,
},
},
},
}

View file

@ -103,7 +103,7 @@ return {
dependencies = {
"jose-elias-alvarez/typescript.nvim",
init = function()
require("lazyvim.util").on_attach(function(_, buffer)
require("lazyvim.util").lsp.on_attach(function(_, buffer)
-- stylua: ignore
vim.keymap.set( "n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" })
vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })

View file

@ -1,20 +0,0 @@
-- dashboard
return {
"goolord/alpha-nvim",
event = "VimEnter",
opts = function()
local dashboard = require("alpha.themes.dashboard")
local logo = [[
Z
Z
z
z
[@ymoruhyi]
]]
dashboard.section.header.val = vim.split(logo, "\n")
end,
}

View file

@ -1,17 +0,0 @@
return {
{
"williamboman/mason.nvim",
opts = function(_, opts)
table.insert(opts.ensure_installed, "svelte-language-server")
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
svelte = {},
},
},
},
"evanleck/vim-svelte",
}

View file

@ -1,26 +0,0 @@
return {
{
"rose-pine/neovim",
name = "rose-pine",
opts = {
variant = "moon",
dark_variant = "moon",
-- highlight_groups = {
-- Normal = { bg = "none" },
-- NormalFloat = { bg = "none" },
-- TelescopeBorder = { fg = "highlight_high", bg = "none" },
-- TelescopeNormal = { bg = "none" },
-- TelescopePromptNormal = { bg = "base" },
-- TelescopeResultsNormal = { fg = "subtle", bg = "none" },
-- TelescopeSelection = { fg = "text", bg = "base" },
-- TelescopeSelectionCaret = { fg = "rose", bg = "rose" },
-- },
},
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "rose-pine",
},
},
}