Skip to content

Commit

Permalink
save 21-12-2022
Browse files Browse the repository at this point in the history
  • Loading branch information
safocl committed Dec 21, 2022
1 parent 31ce40e commit b44f5ec
Show file tree
Hide file tree
Showing 16 changed files with 491 additions and 222 deletions.
46 changes: 34 additions & 12 deletions .config/htop/htoprc
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=45 0 48 17 18 38 39 40 119 2 46 47 49 1
sort_key=39
sort_direction=1
tree_sort_key=39
tree_sort_direction=1
htop_version=3.2.1
config_reader_min_version=3
fields=0 48 17 18 119 38 39 40 2 46 47 49 1
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=0
highlight_deleted_exe=1
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=0
tree_view=0
tree_view_always_by_pid=0
header_margin=1
screen_tabs=0
detailed_cpu_time=0
cpu_count_from_one=1
cpu_count_from_one=0
show_cpu_usage=1
show_cpu_frequency=0
show_cpu_temperature=0
Expand All @@ -32,8 +30,32 @@ account_guest_in_cpu_meter=0
color_scheme=0
enable_mouse=1
delay=15
left_meters=AllCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime Memory CPU(1)
right_meter_modes=2 2 2 2 1
hide_function_bar=0
header_layout=two_50_50
column_meters_0=AllCPUs Memory Swap
column_meter_modes_0=1 1 1
column_meters_1=Tasks LoadAverage Uptime
column_meter_modes_1=2 2 2
tree_view=0
sort_key=39
tree_sort_key=0
sort_direction=-1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_SWAP M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=M_RESIDENT
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0
1 change: 1 addition & 0 deletions .config/nvim/ale-settings.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let g:ale_cpp_cc_options = '-std=c++20 -Wall'
72 changes: 72 additions & 0 deletions .config/nvim/cmp.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
set completeopt=menu,menuone,noselect

lua <<EOF
local cmp = require'cmp'

cmp.setup({
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
-- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
-- require('snippy').expand_snippet(args.body) -- For `snippy` users.
-- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
end,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'nvim_lsp_signature_help' },
{ name = 'vsnip' }, -- For vsnip users.
-- { name = 'luasnip' }, -- For luasnip users.
-- { name = 'ultisnips' }, -- For ultisnips users.
-- { name = 'snippy' }, -- For snippy users.
}, {
{ name = 'buffer' },
})
})

-- Set configuration for specific filetype.
cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources({
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
}, {
{ name = 'buffer' },
})
})

-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = 'buffer' }
}
})

-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
})
})

-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
require('lspconfig')['clangd'].setup {
capabilities = capabilities
}
EOF
4 changes: 2 additions & 2 deletions .config/nvim/coc-clangd.vim
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
let g:semanticHighlighting = 1
" let g:coc_default_semantic_highlight_groups = 1
"let g:semanticHighlighting = 1
"let g:coc_default_semantic_highlight_groups = 1
9 changes: 7 additions & 2 deletions .config/nvim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"coc.preferences.colorSupport": false,
"clangd.semanticHighlighting": true
"clangd.disableCompletion": false,
"clangd.enabled": true,
"semanticTokens.enable": false,
"highlight.colors.enable": true,
"highlight.colorNames.enable": true,
"highlight.document.enable": true,
"colors.enable": true
}
Loading

0 comments on commit b44f5ec

Please sign in to comment.