This commit is contained in:
LinlyBoi
2022-12-24 13:32:11 +02:00
parent 4e9af7ad77
commit 60b4e0d901
5 changed files with 0 additions and 131 deletions

View File

@@ -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

View File

@@ -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', '<Esc>', '<C-\\><C-n>')
rt.setup({
server = {
on_attach = function(_, bufnr)
-- Hover actions
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
-- Code action groups
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
end,
},
})

View File

@@ -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"] = {}
}

View File

@@ -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
-- },
-- }
-- }
-- }

View File

@@ -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,
}