summaryrefslogtreecommitdiff
path: root/nvim/lua/kkard2/lazy
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/kkard2/lazy')
-rw-r--r--nvim/lua/kkard2/lazy/catppuccin.lua21
-rw-r--r--nvim/lua/kkard2/lazy/lsp.lua72
-rw-r--r--nvim/lua/kkard2/lazy/treesitter.lua9
3 files changed, 0 insertions, 102 deletions
diff --git a/nvim/lua/kkard2/lazy/catppuccin.lua b/nvim/lua/kkard2/lazy/catppuccin.lua
deleted file mode 100644
index d8aee9a..0000000
--- a/nvim/lua/kkard2/lazy/catppuccin.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-return function()
- require("catppuccin").setup({
- no_italic = true,
- color_overrides = {
- mocha = {
- base = "#000000",
- mantle = "#000000",
- crust = "#000000",
- },
- },
- highlight_overrides = {
- mocha = function(c)
- return {
- MiniTrailspace = { bg = c.red },
- }
- end,
- },
- })
-
- vim.cmd("colorscheme catppuccin-mocha")
-end
diff --git a/nvim/lua/kkard2/lazy/lsp.lua b/nvim/lua/kkard2/lazy/lsp.lua
deleted file mode 100644
index a4d24ad..0000000
--- a/nvim/lua/kkard2/lazy/lsp.lua
+++ /dev/null
@@ -1,72 +0,0 @@
--- WARNING: BAD CODE AHEAD
--- look at your own risk
-local function rename_file()
- local source_file, target_file
-
- vim.ui.input({
- prompt = "Source : ",
- completion = "file",
- default = vim.api.nvim_buf_get_name(0)
- },
- function(input)
- source_file = input
- end
- )
- vim.ui.input({
- prompt = "Target : ",
- completion = "file",
- default = source_file
- },
- function(input)
- target_file = input
- end
- )
-
- local params = {
- command = "_typescript.applyRenameFile",
- arguments = {
- {
- sourceUri = source_file,
- targetUri = target_file,
- },
- },
- title = ""
- }
-
- vim.lsp.util.rename(source_file, target_file)
- vim.lsp.buf.execute_command(params)
-end
--- END OF WARNING
-
-return function()
- local lsp = require("lsp-zero").preset({})
-
- lsp.on_attach(function(_, bufnr)
- -- see :help lsp-zero-keybindings
- -- to learn the available actions
- lsp.default_keymaps({ buffer = bufnr })
- end)
-
- -- (Optional) Configure lua language server for neovim
- require("lspconfig").lua_ls.setup(lsp.nvim_lua_ls())
-
- lsp.setup()
-
- vim.keymap.set("n", "gh", vim.diagnostic.open_float)
- vim.keymap.set("n", "<leader>lr", vim.lsp.buf.rename)
- vim.keymap.set("n", "<leader><CR>", vim.lsp.buf.code_action)
- vim.keymap.set("n", "<leader>lf", vim.lsp.buf.format)
-
-
-
- -- temp
- require("lspconfig").tsserver.setup({
- commands = {
- RenameFile = {
- rename_file,
- description = "Rename File"
- },
- }
- })
- -- end temp
-end
diff --git a/nvim/lua/kkard2/lazy/treesitter.lua b/nvim/lua/kkard2/lazy/treesitter.lua
deleted file mode 100644
index 5129ecd..0000000
--- a/nvim/lua/kkard2/lazy/treesitter.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-return function()
- require("nvim-treesitter.configs").setup({
- auto_install = true,
- highlight = {
- enable = true,
- },
- })
- vim.cmd("TSUpdate")
-end