Several fixes and adds a new dependency of the dap debugger plugin

This commit is contained in:
Oobleck 2024-03-19 17:16:35 -04:00
parent cfc5100ac5
commit 09efe3c65b
8 changed files with 34 additions and 6 deletions

View file

@ -173,7 +173,6 @@ require('lazy').setup({
-- These are some example plugins that I've included in the kickstart repository.
-- Uncomment any of the lines below to enable them.
require 'kickstart.plugins.autoformat',
require 'kickstart.plugins.debug',
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
--

View file

@ -1,7 +1,7 @@
local tb = require('telescope.builtin')
function kmap(keys, cmd, desc, mode)
vim.keymap.set(mode or 'n', keys, cmd, { desc = desc})
vim.keymap.set(mode or 'n', keys, cmd, { desc = desc, noremap = true})
end
--[[ This file contains general and specific plugin keymaps. ]]
@ -22,6 +22,10 @@ vim.keymap.set({ 'n' }, '<cr>', 'pumvisible() ? "<C-y>" : "<C-g>u<cr>"', { expr
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
vim.keymap.set({ 'n', 'i' }, '<C-S>', '<ESC><cmd>wa<CR>', { desc = '[S]ave all modified buffers' })
vim.keymap.set('n', '<Leader>qq', '<CMD>qa<CR>', { desc = '[Q]uit vim' })
kmap('<Del>', '"_d', 'Delete selection without copy', {'n', 'v'})
kmap('<BS>', '"_d', 'Delete selection without copy', {'n', 'v'})
-- kmap('<Del>', '<cmd>"_d', 'Delete selection without copy', {'i'})
kmap('<C-a>', 'ggVG', 'Select all lines', {'n', 'i'})
-- Uses Mini.bufremove's :bdelete
vim.keymap.set('n', '<Leader>x', '<CMD>bdelete<CR>', { desc = '[B]uffer [d]elete (close buffer)' })

View file

@ -8,7 +8,7 @@ local globals = {
pref_blend = 0,
-- pref_colorscheme = 'catppuccin',
pref_colorscheme = 'nordic',
pref_layer_colorscheme = 'minischeme',
pref_layer_colorscheme = 'gruvbox',
pref_autoformat = false,
}

View file

@ -28,7 +28,14 @@ return {
{ 'hrsh7th/cmp-cmdline' },
{ 'FelipeLema/cmp-async-path' },
{ 'nat-418/cmp-color-names.nvim' },
{ 'Jezda1337/nvim-html-css' },
-- {
-- 'Jezda1337/nvim-html-css',
-- dependencies = {
-- "nvim-treesitter/nvim-treesitter",
-- "nvim-lua/plenary.nvim",
-- },
-- config = true,
-- },
{ 'mmolhoek/cmp-scss' },
{ 'onsails/lspkind.nvim' },
},
@ -78,6 +85,7 @@ return {
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}),
sources = cmp.config.sources({
-- { name = "html-css" },
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },

View file

@ -13,6 +13,7 @@ return {
dependencies = {
-- Creates a beautiful debugger UI
'rcarriga/nvim-dap-ui',
{ "nvim-neotest/nvim-nio" },
-- Installs the debug adapters for you
'williamboman/mason.nvim',

View file

@ -193,4 +193,18 @@ return {
"neovim/nvim-lspconfig",
},
},
{
-- https://github.com/NvChad/nvim-colorizer.lua#customization
'NvChad/nvim-colorizer.lua',
config = true,
ft = { 'css', 'html', 'markdown' },
opts = {
user_default_options = {
css = true,
css_fn = true,
sass = { enable = true, parsers = { "css" }, },
mode = "background",
},
},
}
}

View file

@ -19,6 +19,7 @@ return {
{
"nvimtools/none-ls.nvim",
event = "BufEnter",
enabled = true,
dependencies = { "mason.nvim" },
Xinit = function()
Util.on_very_lazy(function()
@ -75,6 +76,7 @@ return {
})
opts.border = vim.g.pref_border_style
opts.log_level = "error"
return opts
end,
config = true,

View file

@ -31,7 +31,7 @@ return {
-- Breadcrumbs dropbar (like IntelliJ's): Requires nvim 0.10+
-- https://github.com/Bekaboo/dropbar.nvim#configuration
'Bekaboo/dropbar.nvim',
enabled = vim.api.nvim_eval("has('nvim-0.10.0')") == 1,
enabled = false, -- vim.api.nvim_eval("has('nvim-0.10.0')") == 1,
dependencies = {
'nvim-tree/nvim-web-devicons',
'nvim-telescope/telescope-fzf-native.nvim',
@ -101,7 +101,7 @@ return {
{
-- https://github.com/folke/styler.nvim#readme
"folke/styler.nvim",
-- enabled = false,
enabled = false,
-- lazy = true,
opts = {
themes = {