updateHyprland

This commit is contained in:
albert 2024-04-03 22:12:09 +09:00
parent 4b0fa2ba87
commit 5ca1f8f15a
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
4 changed files with 13 additions and 12 deletions

View file

@ -36,6 +36,7 @@
input = { input = {
kb_layout = "us"; kb_layout = "us";
follow_mouse = "1"; follow_mouse = "1";
mouse_refocus = false;
touchpad = { touchpad = {
natural_scroll = true; natural_scroll = true;
disable_while_typing = true; disable_while_typing = true;

View file

@ -11,8 +11,6 @@
} }
) )
vim.diagnostic.config { float = { border = _border } }
require('lspconfig.ui.windows').default_options = { border = _border } require('lspconfig.ui.windows').default_options = { border = _border }
local signs = { Error = "󰅚 ", Warn = "󰀪 ", Hint = "󰌶 ", Info = " " } local signs = { Error = "󰅚 ", Warn = "󰀪 ", Hint = "󰌶 ", Info = " " }
for type, icon in pairs(signs) do for type, icon in pairs(signs) do
@ -29,11 +27,12 @@
vim.diagnostic.config ( { virtual_text = { prefix = '', } } ) vim.diagnostic.config ( { virtual_text = { prefix = '', } } )
vim.diagnostic.config { float = { border = _border } } vim.diagnostic.config { float = { border = _border } }
vim.diagnostic.config({ virtual_text = false })
''; '';
plugins = { plugins = {
lsp-lines.enable = true; lsp-lines.enable = true;
lsp-lines.currentLine = false; lsp-lines.currentLine = true;
crates-nvim.enable = true; crates-nvim.enable = true;
lspsaga = { lspsaga = {
enable = false; enable = false;
@ -82,6 +81,7 @@
} }
) )
''; '';
keymaps = { keymaps = {
silent = true; silent = true;
diagnostic = { diagnostic = {

View file

@ -51,8 +51,8 @@
popupmenu.enabled = false; popupmenu.enabled = false;
lsp.hover.enabled = false; lsp.hover.enabled = false;
presets = { presets = {
bottom_search = false; bottom_search = true;
command_palette = false; command_palette = true;
long_message_to_split = false; long_message_to_split = false;
inc_rename = false; inc_rename = false;
lsp_doc_border = true; lsp_doc_border = true;

View file

@ -18,7 +18,7 @@
"<C-d>" = "cmp.mapping.scroll_docs(-4)"; "<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()"; "<C-e>" = "cmp.mapping.close()";
"<C-f>" = "cmp.mapping.scroll_docs(4)"; "<C-f>" = "cmp.mapping.scroll_docs(4)";
"<CR>" = "cmp.mapping.confirm({ select = true })"; "<CR>" = "cmp.mapping.confirm({ select = true })";
"<S-Tab>" = { "<S-Tab>" = {
action = "cmp.mapping.select_prev_item()"; action = "cmp.mapping.select_prev_item()";
modes = [ modes = [
@ -35,9 +35,9 @@
}; };
}; };
sources = [ sources = [
# { name = "nvim_lua"; } { name = "nvim_lua"; }
{ name = "nvim_lsp"; } { name = "nvim_lsp"; }
# { name = "nvim_lsp_signature_help"; } { name = "nvim_lsp_signature_help"; }
{ name = "calc"; } { name = "calc"; }
{ name = "path"; } { name = "path"; }
{ name = "buffer"; } { name = "buffer"; }
@ -54,10 +54,10 @@
format = '' format = ''
function(entry, item) function(entry, item)
local menu_icon = { local menu_icon = {
nvim_lsp = 'λ', nvim_lsp = 'λ',
luasnip = '', luasnip = '',
buffer = 'Ω', buffer = 'Ω',
path = '🖫', path = '🖫',
} }
item.menu = menu_icon[entry.source.name] item.menu = menu_icon[entry.source.name]
return item return item