Skip to content

DomacsVim/DomacsVim

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Showcase

2022-09-04_15-18 2022-06-26_18-07 2022-06-27_21-40

NOTE: for running DomacsVim write $ dvim or $ dvim [file] command

Installation

In the first step, make sure that you have version 7 or higher of NeoVim.

UNIX :

bash <(curl -s https://raw.githubusercontent.com/DomacsVim/DomacsVim/master/utils/Installer/install.sh)

you can start the installation process by writing a command line. You will be asked several questions to install the desired packages. and if needed (the package in question is not pre-installed on your system) you answer with ( y ) and otherwise (if the package in question is pre-installed on your system) with ( n ) you answer and that's it.

IntelliSense

By default, DomacsVim supports python-lua-html-css-javascript and typescript languages. But if you have a special language in mind, you can install it as follows.

‍‍‍:MasonInstall <package>

Here, means programming language, linter, debugger, formatter.

And if this language needs property settings, you can apply them in your settings file (~/.config/dvim).

Configuration file

To install plugins configure DomacsVim use the config.lua located here: ~/.config/dvim

Example :

dvim.leader = ' '
dvim.backup = false
dvim.number = true
dvim.shiftwidth = 2
dvim.tabstop = 2
dvim.colorscheme = 'onedarker'
dvim.useing_icons = true
dvim.builtin.alpha.active = true
dvim.builtin.telescope.active = true
dvim.builtin.which_key.active = true
dvim.builtin.luasnip.friendly_snippets.active = true
dvim.builtin.dap.active = true
-- and etc ...
-- dvim.builtin.[extension].active = true/false

-- add your own keymapping
local options = { silent = true }

local modes = {
  insert_mode = 'i',
  normal_mode = 'n',
  visual_mode = 'v',
  visual_block_mode = 'x',
  command_mode = 'c',
}

vim.keymap.set(modes.normal_mode, '<C-s>', ':w <cr>', options)

-- lspconfig
dvim.lspconfig.virtual_text = true
dvim.lspconfig.prefix = ''
dvim.lspconfig.underline = true
dvim.lspconfig.update_in_insert = false
dvim.lspconfig.float = { border = 'rounded' }

-- formatting - null-ls
local null_ls = require 'null-ls'
local formatting = null_ls.builtins.formatting

null_ls.setup {
  debug = false,
  sources = {
    formatting.eslint,
    formatting.autopep8.with {
      filetype = {'python'}
    },
  }
}
-- etc ...
dvim.extensions = {
  -- add your extensions with this template :
  -- { 'url', ...}
}

Updating DomacsVim

update DomacsVim with one command : :DvimUpdate

Resources