more stuff

This commit is contained in:
cmccay 2023-01-12 16:42:49 -06:00
parent 9b3299e972
commit 7c7b898c5e
5 changed files with 35 additions and 9 deletions

View File

@ -11,6 +11,7 @@ wk.register({
f = "Find File", f = "Find File",
s = "Live Search", s = "Live Search",
b = "File Browser (delete this?)", b = "File Browser (delete this?)",
r = "Recent Files",
}, },
-- Git related stuff -- Git related stuff
g = { g = {
@ -34,7 +35,8 @@ wk.register({
K = "Hover", K = "Hover",
gd = "Go to definition", gd = "Go to definition",
-- Debugging -- Debugging
D = "Debug UI",
B = "Set Breakpoint", B = "Set Breakpoint",
["<F5>"] = "Debug: Continue", -- this doesnt work ["<F5>"] = "Debug: Continue",
}, },
}) })

View File

@ -11,6 +11,6 @@ require("clint") -- loads lua/clint/init.lua
require("lazy").setup( require("lazy").setup(
{ {
spec = "plugins", spec = "plugins",
install = { colorscheme = { "gruvbox", "habamax" } } install = { colorscheme = { "gruvbox", } }
} }
) -- loads each lua/plugin/* ) -- loads each lua/plugin/*

View File

@ -1,8 +1,8 @@
-- general theme -- general theme
vim.cmd("colorscheme gruvbox") vim.cmd("colorscheme gruvbox")
-- ignore background color for transparency -- -- ignore background color for transparency
vim.cmd("highlight Normal guibg=none") -- vim.cmd("highlight Normal guibg=none")
vim.cmd("highlight NonText guibg=none") -- vim.cmd("highlight NonText guibg=none")
vim.cmd("highlight Normal ctermbg=none") -- vim.cmd("highlight Normal ctermbg=none")
vim.cmd("highlight NonText ctermbg=none") -- vim.cmd("highlight NonText ctermbg=none")

View File

@ -13,6 +13,11 @@ require 'lspconfig'.pyright.setup {
on_attach = on_attach on_attach = on_attach
} }
-- require 'lspconfig'.black.setup {
-- capabilities = capabilities,
-- on_attach = on_attach
-- }
require 'lspconfig'.sumneko_lua.setup { require 'lspconfig'.sumneko_lua.setup {
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,
@ -38,6 +43,25 @@ cmp.setup({
-- documentation = cmp.config.window.bordered(), -- documentation = cmp.config.window.bordered(),
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
-- elseif has_words_before() then
-- cmp.complete()
else
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
end, { "i", "s" }),
['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),

View File

@ -20,7 +20,7 @@ return {
local nls = require("null-ls") local nls = require("null-ls")
nls.setup({ nls.setup({
sources = { sources = {
nls.builtins.diagnostics.selene, nls.builtins.formatting.black,
}, },
}) })
end, end,
@ -126,7 +126,7 @@ return {
{ 'nvim-lualine/lualine.nvim' }, { 'nvim-lualine/lualine.nvim' },
-- Devicons -- Devicons
{ 'kyazdani42/nvim-web-devicons' }, { 'nvim-tree/nvim-web-devicons' },
-- Indent lines -- Indent lines
{ "lukas-reineke/indent-blankline.nvim" }, { "lukas-reineke/indent-blankline.nvim" },