Skip to content

Commit bcf324b

Browse files
committed
Partial
1 parent de80b44 commit bcf324b

5 files changed

Lines changed: 50 additions & 16 deletions

File tree

init.lua

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ vim.g.maplocalleader = ' '
88
vim.g.have_nerd_font = true
99

1010
-- Set global theme
11-
vim.g.theme = 'adwaita'
11+
vim.g.theme = 'oxocarbon'
1212

1313
-- [[ Setting options ]]
1414
-- See `:help vim.opt`
@@ -82,6 +82,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
8282

8383
-- Diagnostic keymaps
8484
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
85+
vim.keymap.set('n', '<C-q>', vim.diagnostic.open_float, { desc = 'Open diagnostic on a float window' })
8586

8687
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
8788
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
@@ -500,14 +501,14 @@ require('lazy').setup({
500501
})
501502

502503
-- Change diagnostic symbols in the sign column (gutter)
503-
-- if vim.g.have_nerd_font then
504-
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
505-
-- local diagnostic_signs = {}
506-
-- for type, icon in pairs(signs) do
507-
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
508-
-- end
509-
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
510-
-- end
504+
if vim.g.have_nerd_font then
505+
local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
506+
local diagnostic_signs = {}
507+
for type, icon in pairs(signs) do
508+
diagnostic_signs[vim.diagnostic.severity[type]] = icon
509+
end
510+
vim.diagnostic.config { signs = { text = diagnostic_signs } }
511+
end
511512

512513
-- LSP servers and clients are able to communicate to each other what features they support.
513514
-- By default, Neovim doesn't support everything that is in the LSP specification.
@@ -542,6 +543,7 @@ require('lazy').setup({
542543
},
543544
},
544545
jedi_language_server = {},
546+
kotlin_language_server = {},
545547
-- rust_analyzer = {},
546548
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
547549
--
@@ -562,7 +564,7 @@ require('lazy').setup({
562564
callSnippet = 'Replace',
563565
},
564566
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
565-
-- diagnostics = { disable = { 'missing-fields' } },
567+
diagnostics = { disable = { 'missing-fields' } },
566568
},
567569
},
568570
},
@@ -592,6 +594,7 @@ require('lazy').setup({
592594
'emmet-language-server', -- emmet
593595
'sonarlint-language-server', -- Helpful linting and diagnostics
594596
'markdownlint',
597+
'ktlint',
595598
})
596599
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
597600

@@ -638,7 +641,7 @@ require('lazy').setup({
638641
lsp_format_opt = 'fallback'
639642
end
640643
return {
641-
timeout_ms = 500,
644+
timeout_ms = 750,
642645
lsp_format = lsp_format_opt,
643646
}
644647
end,
@@ -792,19 +795,18 @@ require('lazy').setup({
792795
},
793796

794797
{
795-
'nyoom-engineering/oxocarbon.nvim',
798+
'Mofiqul/adwaita.nvim',
796799
lazy = false,
797800
priority = 1000,
798-
config = function()
799-
vim.cmd.colorscheme(vim.g.theme)
800-
end,
801801
},
802802

803803
{
804-
'Mofiqul/adwaita.nvim',
804+
'uloco/bluloco.nvim',
805805
lazy = false,
806806
priority = 1000,
807+
dependencies = { 'rktjmp/lush.nvim' },
807808
},
809+
{ 'EdenEast/nightfox.nvim', lazy = false, priority = 1000 }, -- lazy
808810
-- Highlight todo, notes, etc in comments
809811
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
810812

@@ -831,6 +833,8 @@ require('lazy').setup({
831833
-- Simple and easy statusline.
832834
-- You could remove this setup call if you don't like it,
833835
-- and try some other statusline plugin
836+
require('mini.git').setup()
837+
require('mini.diff').setup()
834838
local statusline = require 'mini.statusline'
835839
-- set use_icons to true if you have a Nerd Font
836840
statusline.setup { use_icons = vim.g.have_nerd_font }

lua/custom/plugins/love2d.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
return {
2+
'S1M0N38/love2d.nvim',
3+
event = 'VeryLazy',
4+
opts = {},
5+
keys = {
6+
{ '<leader>v', ft = 'lua', desc = 'LÖVE' },
7+
{ '<leader>vv', '<cmd>LoveRun<cr>', ft = 'lua', desc = 'Run LÖVE' },
8+
{ '<leader>vs', '<cmd>LoveStop<cr>', ft = 'lua', desc = 'Stop LÖVE' },
9+
},
10+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
return {
2+
'nvim-treesitter/nvim-treesitter-context',
3+
opts = {
4+
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
5+
multiwindow = false, -- Enable multiwindow support.
6+
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
7+
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
8+
line_numbers = true,
9+
multiline_threshold = 20, -- Maximum number of lines to show for a single context
10+
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
11+
mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline'
12+
-- Separator between context and content. Should be a single character string, like '-'.
13+
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
14+
separator = nil,
15+
zindex = 20, -- The Z-index of the context window
16+
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
17+
},
18+
}

lua/custom/plugins/vimtex.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
return {}

lua/kickstart/plugins/neo-tree.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ return {
1919
opts = {
2020
filesystem = {
2121
window = {
22+
position = 'right',
2223
mappings = {
2324
['\\'] = 'close_window',
2425
},

0 commit comments

Comments
 (0)