diff options
| author | kkard2 <[email protected]> | 2024-04-27 16:18:34 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2024-04-27 16:18:34 +0200 |
| commit | a9c14b36cb9f45d10fe811aaa2a1f7b95bace859 (patch) | |
| tree | 1f6c9bfc21b95f66e3c6a08a5b06b42fd3570ab6 /nvim | |
| parent | ebd4db01e65cdb4301898a5048ee020a52a6733b (diff) | |
adding commented out code
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 5a914c1..dc94ce4 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -106,6 +106,33 @@ vim.keymap.set("n", "<leader>td", function() vim.cmd("silent !ctags -aR .") end) +-- maybe i'll return to this, for now i can't be bothered + +-- vim.keymap.set("n", ".", function() +-- local bufnr = vim.api.nvim_get_current_buf() +-- local bufinfo = vim.fn.getbufinfo(bufnr)[1]; +-- local bufname = bufinfo.name; + +-- if vim.startswith(bufname, "oil:///") then +-- if bufinfo.changed ~= 0 then +-- vim.print("save changes first") +-- return +-- end + +-- local filename = vim.fn.input("New file:") + +-- if filename == "" then +-- return +-- end + +-- vim.fn.feedkeys(vim.api.nvim_replace_termcodes( +-- "o" .. filename .. "<Esc>", true, false, true)) +-- vim.cmd.write() +-- else +-- vim.api.nvim_feedkeys(".", "n", false) +-- end +-- end) + -- colorscheme vim.cmd("colorscheme industry") @@ -159,6 +186,9 @@ require("lazy").setup({ highlight = { enable = true, }, + ignore_install = { + "haskell", -- hangs terminal window in certain cases + }, }) vim.cmd("TSUpdate") end @@ -233,6 +263,8 @@ require("lazy").setup({ map("<leader><CR>", vim.lsp.buf.code_action, "Code Action") map("K", vim.lsp.buf.hover, "Hover Documentation") map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration") + + vim.keymap.set({ "n", "i" }, "<C-k>", vim.lsp.buf.signature_help) end, }) |
