nvim: LSP hover border
This commit is contained in:
parent
65959c41b0
commit
7d8eaaae76
4 changed files with 27 additions and 24 deletions
|
@ -85,7 +85,7 @@
|
||||||
(keymap.set :i :<esc> "pumvisible() ? \"\\<C-y>\" : \"\\<esc>\""
|
(keymap.set :i :<esc> "pumvisible() ? \"\\<C-y>\" : \"\\<esc>\""
|
||||||
{:expr true}))
|
{:expr true}))
|
||||||
|
|
||||||
(fn mod.lsp-attach [client bufnr]
|
(fn mod.lsp-attach [_client bufnr]
|
||||||
(keymap.set :n :<leader>t
|
(keymap.set :n :<leader>t
|
||||||
#(telescope-builtin.lsp_document_symbols telescope-dropdown)
|
#(telescope-builtin.lsp_document_symbols telescope-dropdown)
|
||||||
{:buffer bufnr :desc "LSP Document Symbols"})
|
{:buffer bufnr :desc "LSP Document Symbols"})
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
(if self.is_active "│ " " "))
|
(if self.is_active "│ " " "))
|
||||||
:hl (fn [self]
|
:hl (fn [self]
|
||||||
(if self.is_active {:fg colors.purple :bg bg-active :bold true}
|
(if self.is_active {:fg colors.purple :bg bg-active :bold true}
|
||||||
{:fg fg-inactive :bg bg-inactive :bold true}))})
|
{:fg fg-inactive :bg bg-inactive}))})
|
||||||
(set mod.os-indicator {:static {:uname (. (vim.loop.os_uname) :sysname)
|
(set mod.os-indicator {:static {:uname (. (vim.loop.os_uname) :sysname)
|
||||||
:os {:Darwin "" :Linux ""}
|
:os {:Darwin "" :Linux ""}
|
||||||
:os-color {:Darwin colors.white
|
:os-color {:Darwin colors.white
|
||||||
|
@ -99,4 +99,3 @@
|
||||||
2 (heirline-utils.make_tablist mod.tabpage)
|
2 (heirline-utils.make_tablist mod.tabpage)
|
||||||
3 mod.close-tabpage})
|
3 mod.close-tabpage})
|
||||||
mod)
|
mod)
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,12 @@
|
||||||
:desc "Automatic LSP setup"})
|
:desc "Automatic LSP setup"})
|
||||||
;; Servers
|
;; Servers
|
||||||
(vim.lsp.set_log_level :OFF)
|
(vim.lsp.set_log_level :OFF)
|
||||||
(let [flags {:allow_incremental_sync true :debounce_text_changes 700}
|
(let [handlers {:textDocument/hover (vim.lsp.with vim.lsp.handlers.hover
|
||||||
default-config {: flags}
|
{:border :rounded})
|
||||||
|
:textDocument/signatureHelp (vim.lsp.with vim.lsp.handlers.signature_help
|
||||||
|
{:border :rounded})}
|
||||||
|
flags {:allow_incremental_sync true :debounce_text_changes 700}
|
||||||
|
default-config {: handlers : flags}
|
||||||
default-servers [:bashls
|
default-servers [:bashls
|
||||||
:cssls
|
:cssls
|
||||||
:dockerls
|
:dockerls
|
||||||
|
@ -58,7 +62,7 @@
|
||||||
(if (= (vim.fn.executable :elixir-ls) 1)
|
(if (= (vim.fn.executable :elixir-ls) 1)
|
||||||
(lsp.elixirls.setup (->> {:cmd [:elixir-ls]}
|
(lsp.elixirls.setup (->> {:cmd [:elixir-ls]}
|
||||||
(vim.tbl_extend :force default-config)))
|
(vim.tbl_extend :force default-config)))
|
||||||
(lsp.lexical.setup {}))
|
(lsp.lexical.setup default-config))
|
||||||
(when (= (vim.fn.executable :nil) 1)
|
(when (= (vim.fn.executable :nil) 1)
|
||||||
(lsp.nil_ls.setup (->> {:settings {:nil {:formatting {:command [:nixpkgs-fmt]}}}}
|
(lsp.nil_ls.setup (->> {:settings {:nil {:formatting {:command [:nixpkgs-fmt]}}}}
|
||||||
(vim.tbl_extend :force default-config))))
|
(vim.tbl_extend :force default-config))))
|
||||||
|
|
|
@ -29,23 +29,23 @@ in
|
||||||
};
|
};
|
||||||
mini-nvim = buildVimPlugin {
|
mini-nvim = buildVimPlugin {
|
||||||
pname = "mini.nvim";
|
pname = "mini.nvim";
|
||||||
version = "2023-10-23";
|
version = "2023-10-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "echasnovski";
|
owner = "echasnovski";
|
||||||
repo = "mini.nvim";
|
repo = "mini.nvim";
|
||||||
rev = "66e3cdceaba8c0cd089d6f42cb95e04355718f7a";
|
rev = "7af4878bd0b19fcef385e45715f418165eff1218";
|
||||||
sha256 = "0sbznyd54snvvrgcj3pls1xnjg1f0b52fxdp9hsdaxivfar3qizl";
|
sha256 = "06hz76gg2zdj8dxk4i7j5g1m1yjzzmg4fy5f7api3sy8kcp1vq24";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nvim-web-devicons = buildVimPlugin {
|
nvim-web-devicons = buildVimPlugin {
|
||||||
pname = "nvim-web-devicons";
|
pname = "nvim-web-devicons";
|
||||||
version = "2023-10-21";
|
version = "2023-10-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kyazdani42";
|
owner = "kyazdani42";
|
||||||
repo = "nvim-web-devicons";
|
repo = "nvim-web-devicons";
|
||||||
rev = "f0267921c845c42685968401bc49aa65e18d3e09";
|
rev = "5de460ca7595806044eced31e3c36c159a493857";
|
||||||
sha256 = "1qqcjaknnq7bm1rl73nzv9gfcfwx2jrxc8vh2l400m4hj0bgvp9k";
|
sha256 = "1ncwiha8ldxzx1g1hfisrgsvnqv05p7c19glbjp5bwbm5ihfsv04";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -117,12 +117,12 @@ in
|
||||||
};
|
};
|
||||||
nvim-treesitter = buildVimPlugin {
|
nvim-treesitter = buildVimPlugin {
|
||||||
pname = "nvim-treesitter";
|
pname = "nvim-treesitter";
|
||||||
version = "2023-10-23";
|
version = "2023-10-25";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nvim-treesitter";
|
owner = "nvim-treesitter";
|
||||||
repo = "nvim-treesitter";
|
repo = "nvim-treesitter";
|
||||||
rev = "0b50cf159283855b72f4c6b22f5ba3c9cf813b37";
|
rev = "44762abc90725e279f3b9cfbe4cafb41ea72f09b";
|
||||||
sha256 = "0w9hb0n5glhniqx923hvphxf8fy8p3hnwbqsa1fs9cm6bhn8gq5w";
|
sha256 = "1g8m5frq58vwkpksaqwsnanxh28x3bnx0174zdmq6m39q684ms2a";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -263,23 +263,23 @@ in
|
||||||
};
|
};
|
||||||
nvim-lint = buildVimPlugin {
|
nvim-lint = buildVimPlugin {
|
||||||
pname = "nvim-lint";
|
pname = "nvim-lint";
|
||||||
version = "2023-10-22";
|
version = "2023-10-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mfussenegger";
|
owner = "mfussenegger";
|
||||||
repo = "nvim-lint";
|
repo = "nvim-lint";
|
||||||
rev = "a4b0511a9e757e78c8c9f9d3f201e0d8ff158b42";
|
rev = "962a76877a4479a535b935bd7ef35ad41ba308b2";
|
||||||
sha256 = "0laj6z74r3nz497nkgpyx9kvc5111hiaia57h5jx4qvajml9ysl1";
|
sha256 = "0kgw26b367y7aaz1i3ckxkhfk0f4i2s11lcyfvl9zczzjqaqks8v";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
conform-nvim = buildVimPlugin {
|
conform-nvim = buildVimPlugin {
|
||||||
pname = "conform.nvim";
|
pname = "conform.nvim";
|
||||||
version = "2023-10-22";
|
version = "2023-10-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "stevearc";
|
owner = "stevearc";
|
||||||
repo = "conform.nvim";
|
repo = "conform.nvim";
|
||||||
rev = "7f5ff6d253ae3543f186787bccafdc411d3f4b0a";
|
rev = "e4ecb6e8ed3163c86d7e647f1dc3d94de77ca687";
|
||||||
sha256 = "1iargrkz4k51bppp7qm2hlqy334x1qjg0d1ax8dr6qpkhi6al36v";
|
sha256 = "00jc9r5x070fn52735jpvp9r1hsq1gckv5z2gw79mvz95g35rhqg";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -307,12 +307,12 @@ in
|
||||||
};
|
};
|
||||||
indent-blankline-nvim = buildVimPlugin {
|
indent-blankline-nvim = buildVimPlugin {
|
||||||
pname = "indent-blankline.nvim";
|
pname = "indent-blankline.nvim";
|
||||||
version = "2023-10-23";
|
version = "2023-10-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lukas-reineke";
|
owner = "lukas-reineke";
|
||||||
repo = "indent-blankline.nvim";
|
repo = "indent-blankline.nvim";
|
||||||
rev = "2546441840172cc41e70f67c52e205cc7aa3e6ed";
|
rev = "046e2cf04e08ece927bacbfb87c5b35c0b636546";
|
||||||
sha256 = "00p9dyqaa6h67pnkn5wh4iyvi8ydpnyqvbq5n6jk82c5c48h2s2s";
|
sha256 = "18vvqpbjbl3xqgkglc24y3hff4y0m5wzsngp5fwkfqlkqskiw6kf";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue