This commit is contained in:
Liam Waldron 2025-04-17 21:58:53 -04:00
parent 418d494fe9
commit 0544095cf3
8 changed files with 137 additions and 34 deletions

View File

@ -8,7 +8,7 @@ vim.cmd([[
highlight HellValue ctermfg=red guifg=#00ffff highlight HellValue ctermfg=red guifg=#00ffff
set number set number
colorscheme gruvbox colorscheme everforest
set background=dark set background=dark
let g:airline_theme='base16' let g:airline_theme='base16'
@ -29,3 +29,38 @@ require'nvim-treesitter.configs'.setup {
enable = true, enable = true,
}, },
} }
require'lualine'.setup({
options = {
icons_enabled = true,
theme = cozynight,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {},
always_divide_middle = true
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff',
{
'diagnostics',
sources = { "nvim_diagnostic" },
symbols = { error = '', warn = '', info = '', hint = '' }
}
},
lualine_c = { 'filename' },
lualine_x = { 'copilot' ,'encoding', 'fileformat', 'filetype' }, -- I added copilot here
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
tabline = {},
extensions = {}
})

View File

@ -24,5 +24,18 @@ return require('packer').startup(function(use)
end, end,
} }
use 'shaunsingh/nord.nvim' use 'shaunsingh/nord.nvim'
use 'folke/noice.nvim'
use 'rcarriga/nvim-notify'
use 'MunifTanjim/nui.nvim'
-- use {
-- 'zbirenbaum/copilot.lua',
-- cmd = "Copilot",
-- event = "InsertEnter",
-- config = function()
-- require("copilot").setup({})
-- end,
-- }
-- use 'AndreM222/copilot-lualine'
end) end)

View File

@ -1,8 +1,9 @@
require('lualine').setup { require('lualine').setup {
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'everforest',
-- theme = 'nord', -- theme = 'nord',
theme = 'gruvbox-material', -- theme = 'gruvbox-material',
component_separators = { left = '', right = ''}, component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''}, section_separators = { left = '', right = ''},
disabled_filetypes = { disabled_filetypes = {

18
plugin/noice.lua Normal file
View File

@ -0,0 +1,18 @@
require("noice").setup({
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
},
},
-- you can enable a preset for easier configuration
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
})

View File

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end end
time([[Luarocks path setup]], true) time([[Luarocks path setup]], true)
local package_path_str = "/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/share/lua/5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/share/lua/5.1/?/init.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/lib/luarocks/rocks-5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/lib/luarocks/rocks-5.1/?/init.lua" local package_path_str = "/home/arco/.cache/nvim/packer_hererocks/2.1.1741730670/share/lua/5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1741730670/share/lua/5.1/?/init.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1741730670/lib/luarocks/rocks-5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1741730670/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/lib/lua/5.1/?.so" local install_cpath_pattern = "/home/arco/.cache/nvim/packer_hererocks/2.1.1741730670/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str package.path = package.path .. ';' .. package_path_str
end end
@ -91,11 +91,26 @@ _G.packer_plugins = {
path = "/home/arco/.local/share/nvim/site/pack/packer/start/lualine.nvim", path = "/home/arco/.local/share/nvim/site/pack/packer/start/lualine.nvim",
url = "https://github.com/nvim-lualine/lualine.nvim" url = "https://github.com/nvim-lualine/lualine.nvim"
}, },
["noice.nvim"] = {
loaded = true,
path = "/home/arco/.local/share/nvim/site/pack/packer/start/noice.nvim",
url = "https://github.com/folke/noice.nvim"
},
["nord.nvim"] = { ["nord.nvim"] = {
loaded = true, loaded = true,
path = "/home/arco/.local/share/nvim/site/pack/packer/start/nord.nvim", path = "/home/arco/.local/share/nvim/site/pack/packer/start/nord.nvim",
url = "https://github.com/shaunsingh/nord.nvim" url = "https://github.com/shaunsingh/nord.nvim"
}, },
["nui.nvim"] = {
loaded = true,
path = "/home/arco/.local/share/nvim/site/pack/packer/start/nui.nvim",
url = "https://github.com/MunifTanjim/nui.nvim"
},
["nvim-notify"] = {
loaded = true,
path = "/home/arco/.local/share/nvim/site/pack/packer/start/nvim-notify",
url = "https://github.com/rcarriga/nvim-notify"
},
["nvim-treesitter"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/home/arco/.local/share/nvim/site/pack/packer/start/nvim-treesitter", path = "/home/arco/.local/share/nvim/site/pack/packer/start/nvim-treesitter",

View File

@ -6,6 +6,7 @@ syntax keyword hellKeyword import func
syntax keyword hellKeyword if then else while for switch case syntax keyword hellKeyword if then else while for switch case
syntax keyword hellKeyword writeln syntax keyword hellKeyword writeln
syntax keyword hellType int str float void double bool syntax keyword hellType int str float void double bool
syntax keyword hellType integer decimal character large_decimal CLion
syntax keyword hellGlobalContainer hell syntax keyword hellGlobalContainer hell
highlight link hellKeyword Keyword highlight link hellKeyword Keyword

View File

@ -4,14 +4,22 @@ endif
syntax keyword pcdKeyword func syntax keyword pcdKeyword func
syntax keyword pcdKeyword if then else while for switch case and syntax keyword pcdKeyword if then else while for switch case and
syntax keyword pcdKeyword break until end default return exec do in syntax keyword pcdKeyword break until end default return do in
syntax keyword pcdKeyword print break fetch exclude def from as alloc unalloc using catch syntax keyword pcdKeyword break fetch exclude def from as alloc unalloc using catch vect_create vect_destroy vect_size args args3 proc io arr class
syntax keyword pcdKeyword pcode start stop syntax keyword pcdFunction pcode start stop size_short size_long init populate_db throw err fork print exec size
syntax keyword pcdKeyword int vd chr str stat flt db tab const long syntax keyword pcdKeyword stat const usign
syntax keyword pcdKeyword i64 i32 i16 i8 ui64 ui32 ui16 ui8 v0 f64 f32 f16 f8
syntax keyword pcdKeyword global local syntax keyword pcdKeyword global local
syntax keyword pcdKeyword true false
syntax keyword pcdType int vd chr short sshort str flt db tab long vector
syntax keyword pcdType i64 i32 i16 i8 ui64 ui32 ui16 ui8 v0 f64 f32 f16 f8
syntax keyword pcdType ctx
syntax keyword pcdKeyword pcdver syntax keyword pcdKeyword pcdver
highlight link pcdType Type
highlight link pcdKeyword Keyword highlight link pcdKeyword Keyword
highlight link pcdFunction Function highlight link pcdFunction Function
@ -26,6 +34,7 @@ syntax match pcdOperator "\v/\="
syntax match pcdOperator "\v\+\=" syntax match pcdOperator "\v\+\="
syntax match pcdOperator "\v-\=" syntax match pcdOperator "\v-\="
syntax match pcdOperator "\v\!\=" syntax match pcdOperator "\v\!\="
syntax keyword pcdOperator NULL
highlight link pcdOperator Operator highlight link pcdOperator Operator

View File

@ -2,36 +2,47 @@ if exists("b:current_syntax")
finish finish
endif endif
syntax keyword phKeyword func syntax keyword pcdKeyword func
syntax keyword phKeyword if then else while for switch case syntax keyword pcdKeyword if then else while for switch case and
syntax keyword phKeyword break until end default return exec syntax keyword pcdKeyword break until end default return do in
syntax keyword phKeyword print break fetch def from alloc unalloc syntax keyword pcdKeyword break fetch exclude def from as alloc unalloc using catch vect_create vect_destroy vect_size args args3 proc io arr class
syntax keyword phKeyword head start stop syntax keyword pcdFunction pcode start stop size_short size_long init populate_db throw err fork print exec size
syntax keyword phKeyword int chr vd stat flt db tab syntax keyword pcdKeyword stat const usign
syntax keyword pcdKeyword i64 i32 i16 i8 ui64 ui32 ui16 ui8 v0 f64 f32 f16 f8
syntax keyword pcdKeyword global local
syntax keyword pcdKeyword true false
syntax keyword phKeyword phver syntax keyword pcdType int vd chr short sshort str flt db tab long vector
syntax keyword pcdType i64 i32 i16 i8 ui64 ui32 ui16 ui8 v0 f64 f32 f16 f8
syntax keyword pcdType ctx
highlight link phKeyword Keyword syntax keyword pcdKeyword pcdver
highlight link phFunction Function
syntax match phOperator "\v\=" highlight link pcdType Type
syntax match phOperator "\v\*"
syntax match phOperator "\v/"
syntax match phOperator "\v\+"
syntax match phOperator "\v-"
syntax match phOperator "\v\?"
syntax match phOperator "\v\*\="
syntax match phOperator "\v/\="
syntax match phOperator "\v\+\="
syntax match phOperator "\v-\="
highlight link phOperator Operator highlight link pcdKeyword Keyword
highlight link pcdFunction Function
syntax region phString start=/\v"/ skip=/\v\\./ end=/\v"/ syntax match pcdOperator "\v\="
syntax region phString start=/\v'/ skip=/\v\\./ end=/\v'/ syntax match pcdOperator "\v\*"
highlight link phString String syntax match pcdOperator "\v/"
syntax match pcdOperator "\v\+"
syntax match pcdOperator "\v-"
syntax match pcdOperator "\v\?"
syntax match pcdOperator "\v\*\="
syntax match pcdOperator "\v/\="
syntax match pcdOperator "\v\+\="
syntax match pcdOperator "\v-\="
syntax match pcdOperator "\v\!\="
syntax keyword pcdOperator NULL
syntax match phComment "\v//.*$" highlight link pcdOperator Operator
highlight link phComment Comment
let b:current_syntax = "ph" syntax region pcdString start=/\v"/ skip=/\v\\./ end=/\v"/
syntax region pcdString start=/\v'/ skip=/\v\\./ end=/\v'/
highlight link pcdString String
syntax match pcdComment "\v//.*$"
highlight link pcdComment Comment
let b:current_syntax = "pcd"