summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/default-config.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-07 01:05:06 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-07 01:05:06 +0200
commit0111b31cb0008f4fcc55ddc373e63f124652b156 (patch)
tree075490fb19c4838fc58129da9f902a3370f6029e /.config/nvim/lua/default-config.lua
parent6fcc69113bd7cc7295ef9dc068da80d043cbb8bb (diff)
Updated config based on Chris LunarVim release
Diffstat (limited to '.config/nvim/lua/default-config.lua')
-rw-r--r--.config/nvim/lua/default-config.lua244
1 files changed, 244 insertions, 0 deletions
diff --git a/.config/nvim/lua/default-config.lua b/.config/nvim/lua/default-config.lua
new file mode 100644
index 0000000..ed28b79
--- /dev/null
+++ b/.config/nvim/lua/default-config.lua
@@ -0,0 +1,244 @@
+CONFIG_PATH = vim.fn.stdpath "config"
+DATA_PATH = vim.fn.stdpath "data"
+CACHE_PATH = vim.fn.stdpath "cache"
+TERMINAL = vim.fn.expand "$TERMINAL"
+
+O = {
+ format_on_save = true,
+ auto_close_tree = 0,
+ auto_complete = true,
+ colorscheme = "lunar",
+ hidden_files = true,
+ wrap_lines = false,
+ number = true,
+ relative_number = true,
+ cursorline = true,
+ shell = "bash",
+ timeoutlen = 100,
+ nvim_tree_disable_netrw = 0,
+ ignore_case = true,
+ smart_case = true,
+ lushmode = false,
+ hl_search = false,
+ transparent_window = false,
+ leader_key = "space",
+ vnsip_dir = vim.fn.stdpath "config" .. "/snippets",
+
+ -- @usage pass a table with your desired languages
+ treesitter = {
+ ensure_installed = "all",
+ ignore_install = { "haskell" },
+ highlight = { enabled = true },
+ -- The below are for treesitter-textobjects plugin
+ textobj_prefixes = {
+ goto_next = "]", -- Go to next
+ goto_previous = "[", -- Go to previous
+ inner = "i", -- Select inside
+ outer = "a", -- Selct around
+ swap = "<leader>a", -- Swap with next
+ },
+ textobj_suffixes = {
+ -- Start and End respectively for the goto keys
+ -- for other keys it only uses the first
+ ["function"] = { "f", "F" },
+ ["class"] = { "m", "M" },
+ ["parameter"] = { "a", "A" },
+ ["block"] = { "k", "K" },
+ ["conditional"] = { "i", "I" },
+ ["call"] = { "c", "C" },
+ ["loop"] = { "l", "L" },
+ ["statement"] = { "s", "S" },
+ ["comment"] = { "/", "?" },
+ },
+ -- The below is for treesitter hint textobjects plugin
+ hint_labels = { "h", "j", "f", "d", "n", "v", "s", "l", "a" },
+ },
+
+ lsp = {
+ popup_border = "single",
+ },
+
+ database = { save_location = "~/.config/nvcode_db", auto_execute = 1 },
+
+ plugin = {
+ -- Builtins
+ dashboard = { active = false },
+ colorizer = { active = false },
+ zen = { active = false },
+ hop = { active = false },
+ vim_rooter = { active = false },
+ ts_context_commentstring = { active = false },
+ ts_hintobjects = { active = false },
+ ts_autotag = { active = false },
+ ts_textobjects = { active = false },
+ ts_playground = { active = false },
+ ts_rainbow = { active = false },
+ ts_textsubjects = { active = false },
+ telescope_fzy = { active = false },
+ telescope_project = { active = false },
+ indent_line = { active = false },
+ symbol_outline = { active = false },
+ debug = { active = false },
+ lazygit = { active = false },
+ lush = { active = false },
+ diffview = { active = false },
+ floatterm = { active = false },
+ trouble = { active = false },
+ sanegx = { active = false },
+ },
+
+ custom_plugins = {
+ -- use config.lua for this not put here
+ },
+
+ user_autocommands = {
+ { "FileType", "qf", "set nobuflisted" },
+ },
+
+ lang = {
+ python = {
+ linter = "",
+ isort = false,
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ analysis = {
+ type_checking = "basic",
+ auto_search_paths = true,
+ use_library_code_types = true,
+ },
+ },
+ dart = {
+ sdk_path = "/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot",
+ },
+ lua = {
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ },
+ sh = {
+ -- @usage can be 'shellcheck'
+ linter = "",
+ -- @usage can be 'shfmt'
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ },
+ tsserver = {
+ -- @usage can be 'eslint'
+ linter = "",
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ },
+ json = {
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ },
+ tailwindcss = {
+ filetypes = {
+ "html",
+ "css",
+ "scss",
+ "javascript",
+ "javascriptreact",
+ "typescript",
+ "typescriptreact",
+ },
+ },
+ clang = {
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ cross_file_rename = true,
+ header_insertion = "never",
+ },
+ ruby = {
+ diagnostics = {
+ virtualtext = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ filetypes = { "rb", "erb", "rakefile", "ruby" },
+ },
+ go = {},
+ elixir = {},
+ vim = {},
+ yaml = {},
+ terraform = {},
+ rust = {
+ rust_tools = {
+ active = false,
+ },
+ linter = "",
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ },
+ svelte = {},
+ php = {
+ environment = {
+ php_version = "7.4",
+ },
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "" },
+ signs = true,
+ underline = true,
+ },
+ filetypes = { "php", "phtml" },
+ },
+ latex = {},
+ kotlin = {},
+ html = {},
+ elm = {},
+ emmet = { active = true },
+ graphql = {},
+ efm = {},
+ docker = {},
+ cmake = {},
+ java = {},
+ css = {
+ virtual_text = true,
+ },
+ },
+
+ dashboard = {
+
+ custom_header = {
+ ' ##############..... ############## ',
+ ' ##############......############## ',
+ ' ##########..........########## ',
+ ' ##########........########## ',
+ ' ##########.......########## ',
+ ' ##########.....##########.. ',
+ ' ##########....##########..... ',
+ ' ..##########..##########......... ',
+ ' ....##########.#########............. ',
+ ' ..################JJJ............ ',
+ ' ################............. ',
+ ' ##############.JJJ.JJJJJJJJJJ ',
+ ' ############...JJ...JJ..JJ JJ ',
+ ' ##########....JJ...JJ..JJ JJ ',
+ ' ########......JJJ..JJJ JJJ JJJ ',
+ ' ###### ......... ',
+ ' ..... ',
+ ' . ',
+ },
+ footer = { "chrisatmachine.com" },
+ },
+}