From 60b4e0d9017b78881806b361df49b45c78feca15 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sat, 24 Dec 2022 13:32:11 +0200 Subject: [PATCH] yes --- private_dot_config/nvim/lua/custom/chadrc.lua | 17 ------- private_dot_config/nvim/lua/custom/init.lua | 18 ------- .../nvim/lua/custom/plugins/init.lua | 23 --------- .../nvim/lua/custom/plugins/lspconfig.lua | 47 ------------------- .../nvim/lua/custom/plugins/null-ls.lua | 26 ---------- 5 files changed, 131 deletions(-) delete mode 100644 private_dot_config/nvim/lua/custom/chadrc.lua delete mode 100644 private_dot_config/nvim/lua/custom/init.lua delete mode 100644 private_dot_config/nvim/lua/custom/plugins/init.lua delete mode 100644 private_dot_config/nvim/lua/custom/plugins/lspconfig.lua delete mode 100644 private_dot_config/nvim/lua/custom/plugins/null-ls.lua diff --git a/private_dot_config/nvim/lua/custom/chadrc.lua b/private_dot_config/nvim/lua/custom/chadrc.lua deleted file mode 100644 index e9545ab..0000000 --- a/private_dot_config/nvim/lua/custom/chadrc.lua +++ /dev/null @@ -1,17 +0,0 @@ --- Just an example, supposed to be placed in /lua/custom/ - -local M = {} -vim.g.vimtex_view_method = 'zathura' -vim.g.vimtext_compiler_method = 'generic' - - --- make sure you maintain the structure of `core/default_config.lua` here, --- example of changing theme: - -M.ui = { - theme = "gruvbox", -} - -M.plugins = require "custom.plugins" - -return M diff --git a/private_dot_config/nvim/lua/custom/init.lua b/private_dot_config/nvim/lua/custom/init.lua deleted file mode 100644 index a8e4ad5..0000000 --- a/private_dot_config/nvim/lua/custom/init.lua +++ /dev/null @@ -1,18 +0,0 @@ --- example file i.e lua/custom/init.lua --- load your options globals, autocmds here or anything .__. --- you can even override default options here (core/options.lua) -local rt = require("rust-tools") -vim.g.vimtex_view_method = 'zathura' -vim.g.vimtext_compiler_method = 'generic' -vim.keymap.set('t', '', '') - -rt.setup({ - server = { - on_attach = function(_, bufnr) - -- Hover actions - vim.keymap.set("n", "", rt.hover_actions.hover_actions, { buffer = bufnr }) - -- Code action groups - vim.keymap.set("n", "a", rt.code_action_group.code_action_group, { buffer = bufnr }) - end, - }, -}) diff --git a/private_dot_config/nvim/lua/custom/plugins/init.lua b/private_dot_config/nvim/lua/custom/plugins/init.lua deleted file mode 100644 index 5c975dc..0000000 --- a/private_dot_config/nvim/lua/custom/plugins/init.lua +++ /dev/null @@ -1,23 +0,0 @@ -return { - ["folke/trouble.nvim"] = { - config = function() - require("trouble").setup{} - end, - }, - ["andweeb/presence.nvim"] = {}, - ["neovim/nvim-lspconfig"] = { - config = function() - require "plugins.configs.lspconfig" - require "custom.plugins.lspconfig" - end, -}, - ["tpope/vim-fugitive"] = {}, - ["jose-elias-alvarez/null-ls.nvim"] = { - after = "nvim-lspconfig", - config = function() - require "custom.plugins.null-ls" - end, - }, - ["simrat39/rust-tools.nvim"] = {}, - ["lervag/vimtex"] = {} - } diff --git a/private_dot_config/nvim/lua/custom/plugins/lspconfig.lua b/private_dot_config/nvim/lua/custom/plugins/lspconfig.lua deleted file mode 100644 index 63b15da..0000000 --- a/private_dot_config/nvim/lua/custom/plugins/lspconfig.lua +++ /dev/null @@ -1,47 +0,0 @@ --- custom.plugins.lspconfig -local on_attach = require("plugins.configs.lspconfig").on_attach -local capabilities = require("plugins.configs.lspconfig").capabilities - -local lspconfig = require "lspconfig" -local servers = { "html", "cssls", "clangd","tsserver","angularls","rust_analyzer","r_language_server","shellcheck",} - -for _, lsp in ipairs(servers) do - lspconfig[lsp].setup { - on_attach = on_attach, - capabilities = capabilities, - } -end -local lsp_flags = { - -- This is the default in Nvim 0.7+ - debounce_text_changes = 150, -} -require('lspconfig')['pyright'].setup{ - on_attach = on_attach, - flags = lsp_flags, -} -require('lspconfig')['tsserver'].setup{ - on_attach = on_attach, - flags = lsp_flags, -} --- require('lspconfig')['rust_analyzer'].setup{ --- on_attach = on_attach, --- flags = lsp_flags, --- settings = { --- ["rust-analyzer"] = { --- imports = { --- granularity = { --- group = "module", --- }, --- prefix = "self", --- }, --- cargo = { --- buildScripts = { --- enable = true, --- }, --- }, --- procMacro = { --- enable = true --- }, --- } --- } --- } diff --git a/private_dot_config/nvim/lua/custom/plugins/null-ls.lua b/private_dot_config/nvim/lua/custom/plugins/null-ls.lua deleted file mode 100644 index f699b44..0000000 --- a/private_dot_config/nvim/lua/custom/plugins/null-ls.lua +++ /dev/null @@ -1,26 +0,0 @@ -local present, null_ls = pcall(require, "null-ls") - -if not present then - return -end - -local b = null_ls.builtins - -local sources = { - - -- webdev stuff - b.formatting.deno_fmt, - b.formatting.prettier, - - -- Lua - b.formatting.stylua, - - -- Shell - b.formatting.shfmt, - b.diagnostics.shellcheck.with { diagnostics_format = "#{m} [#{c}]" }, -} - -null_ls.setup { - debug = true, - sources = sources, -}