@@ -8,7 +8,7 @@ vim.g.maplocalleader = ' '
88vim .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
8484vim .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 }
0 commit comments