config
This commit is contained in:
@ -2,7 +2,7 @@ vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
|
||||
local colors = require("catppuccin.palettes").get_palette()
|
||||
|
||||
require("catppuccin").setup({
|
||||
-- flavour = "macchiato",
|
||||
flavour = vim.g.catppuccin_flavour, --"macchiato",
|
||||
integrations = {
|
||||
cmp = true,
|
||||
-- coc_nvim = false,
|
||||
@ -26,7 +26,7 @@ require("catppuccin").setup({
|
||||
-- nvimtree = true,
|
||||
-- overseer = false,
|
||||
-- pounce = false,
|
||||
symbols_outline = true,
|
||||
symbols_outline = true,
|
||||
telescope = true,
|
||||
treesitter = true,
|
||||
-- treesitter_context = false,
|
||||
|
@ -105,6 +105,15 @@ cmp.setup({
|
||||
{ name = 'nvim_lsp_signature_help' },
|
||||
{ name = 'nvim_ciderlsp', priority = 9 },
|
||||
{ name = "buffer", keyword_length = 5 },
|
||||
{
|
||||
name = 'spell',
|
||||
option = {
|
||||
keep_all_entries = false,
|
||||
enable_in_context = function()
|
||||
return true
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
sorting = {
|
||||
@ -238,7 +247,7 @@ local on_attach = function(client, bufnr)
|
||||
|
||||
vim.api.nvim_command("augroup LSP")
|
||||
vim.api.nvim_command("autocmd!")
|
||||
if client.resolved_capabilities.document_highlight then
|
||||
if client.server_capabilities.document_highlight then
|
||||
vim.api.nvim_command("autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()")
|
||||
vim.api.nvim_command("autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight()")
|
||||
vim.api.nvim_command("autocmd CursorMoved <buffer> lua vim.lsp.util.buf_clear_references()")
|
||||
|
@ -44,34 +44,41 @@ require('lualine').setup {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', getCitc, isCiderLspAttached},
|
||||
lualine_c = {'filename', {"aerial", depth=-1}, getLightbulb},
|
||||
lualine_x = {'filetype'},
|
||||
lualine_x = {
|
||||
{ 'diagnostics', sources = {"nvim_lsp"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||
'encoding',
|
||||
'filetype'
|
||||
},
|
||||
lualine_y = {},
|
||||
lualine_y = {'searchcount'},
|
||||
lualine_z = {'location'}
|
||||
},
|
||||
tabline = {
|
||||
lualine_a = {{'tabs', mode = 1}},
|
||||
-- lualine_b = {'branch'},
|
||||
-- lualine_c = {'filename'},
|
||||
lualine_x = {
|
||||
{ 'diagnostics', sources = {"nvim_lsp", "nvim_workspace_diagnostic"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||
}
|
||||
},
|
||||
-- default
|
||||
-- sections = {
|
||||
-- lualine_a = {'mode'},
|
||||
-- lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
-- lualine_c = {'filename'},
|
||||
-- lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
-- lualine_y = {'progress'},
|
||||
-- lualine_z = {'location'}
|
||||
-- },
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
-- lualine_c = {'filename'},
|
||||
lualine_x = {'location'},
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
},
|
||||
-- tabline = {},
|
||||
-- winbar = {},
|
||||
-- inactive_winbar = {},
|
||||
-- extensions = {}
|
||||
}
|
||||
-- lualine_a = {'mode'},
|
||||
-- lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
-- lualine_c = {'filename'},
|
||||
-- lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
-- lualine_y = {'progress'},
|
||||
-- lualine_z = {'location'}
|
||||
-- },
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
-- lualine_c = {'filename'},
|
||||
lualine_x = {'location'},
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
},
|
||||
-- tabline = {},
|
||||
-- winbar = {},
|
||||
-- inactive_winbar = {},
|
||||
-- extensions = {}
|
||||
}
|
||||
|
@ -5,12 +5,12 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
||||
vim.o.runtimepath = vim.fn.stdpath('data') .. '/site/pack/*/start/*,' .. vim.o.runtimepath
|
||||
end
|
||||
|
||||
local packerGroup = vim.api.nvim_create_augroup("packer_auto_compile", { clear = true })
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
pattern = "*/vim/lua/plugins.lua",
|
||||
command = "luafile <afile> | PackerCompile",
|
||||
group = packerGroup,
|
||||
})
|
||||
vim.cmd([[
|
||||
augroup packer_user_config
|
||||
autocmd!
|
||||
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
|
||||
augroup end
|
||||
]])
|
||||
|
||||
require('packer').startup(function(use)
|
||||
-- Packer can manage itself
|
||||
@ -42,6 +42,7 @@ require('packer').startup(function(use)
|
||||
'hrsh7th/cmp-buffer',
|
||||
'lukas-reineke/cmp-under-comparator',
|
||||
'hrsh7th/cmp-cmdline',
|
||||
'f3fora/cmp-spell',
|
||||
'hrsh7th/cmp-nvim-lsp-document-symbol',
|
||||
'hrsh7th/cmp-nvim-lsp-signature-help',
|
||||
'hrsh7th/cmp-nvim-lua',
|
||||
@ -60,7 +61,7 @@ require('packer').startup(function(use)
|
||||
use { 'ErichDonGubler/lsp_lines.nvim', config = [[require("lsp_lines").setup()]] }
|
||||
|
||||
use 'jghauser/mkdir.nvim'
|
||||
use 'simrat39/symbols-outline.nvim'
|
||||
use { 'simrat39/symbols-outline.nvim' }
|
||||
use { 'petertriho/nvim-scrollbar', config = [[require("scrollbar").setup()]] }
|
||||
|
||||
use {
|
||||
@ -78,7 +79,10 @@ require('packer').startup(function(use)
|
||||
end
|
||||
}
|
||||
use 'sso://googler@user/vintharas/telescope-codesearch.nvim'
|
||||
use 'nvim-lualine/lualine.nvim'
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
config = [[ require("lualine_config") ]]
|
||||
}
|
||||
use 'rcarriga/nvim-notify'
|
||||
|
||||
-- Git
|
||||
@ -154,9 +158,9 @@ require("lsp")
|
||||
require("diagnostics")
|
||||
require("treesitter")
|
||||
require("telescope_config")
|
||||
require("lualine_config")
|
||||
require("notify_config")
|
||||
require("symbols-outline-config")
|
||||
require("spell_config")
|
||||
|
||||
-- redundant w/ lsp_lines
|
||||
vim.diagnostic.config({
|
||||
|
2
vim/.vim/lua/spell_config.lua
Normal file
2
vim/.vim/lua/spell_config.lua
Normal file
@ -0,0 +1,2 @@
|
||||
vim.opt.spell = true
|
||||
vim.opt.spelllang = { 'en_us' }
|
@ -19,5 +19,6 @@ require("symbols-outline").setup(
|
||||
)
|
||||
|
||||
local map = require("utils").map
|
||||
|
||||
|
||||
map('n', '<leader>so', ':SymbolsOutline<cr>')
|
||||
map('n', '<leader>o', ':SymbolsOutline<cr>')
|
||||
|
Reference in New Issue
Block a user